Skip to content
OddsockLocal
Local
Base color#427f9c
Base color#427f9c
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Type a hex code, a CSS color name, or an rgb() value.
  2. Copy the notation your codebase uses.
  3. Use OKLCH if the next step is a lighter or darker ramp of the same hue.
  4. Open the contrast checker before you put text on this color.

What is Color picker?

A brand guide says teal and a stylesheet needs a number. The color picker takes one color, as a hex code, a CSS name, or an rgb() value, and prints the same paint five ways. For the opening color #427f9c the lines are HEX #427f9c, rgb(66, 127, 156), hsl(199 41% 44%), HSV 199° 58% 61%, and oklch(0.57 0.08 231). Those are not five different colors. They are five notations.

Read more

OKLCH is the one to reach for when you want a lighter version that still looks like the same hue. HSL lightness is not perceptually even, which is why a 20% lightness step can jump. HSV is the model painters mean when they talk about value. HEX and RGB are what most tools paste.

The palette page takes this same base and builds a set of relatives. The contrast checker takes two colors and tells you whether text on one over the other passes WCAG. This page only identifies the color you typed.

Use cases

  • A developer turns a Figma hex into hsl() for a token file.
  • A designer reads the OKLCH of a brand color before building a ramp.
  • Someone checks whether navy and #427f9c are even in the same neighborhood.
  • A CSS module needs rgb() because an older variable setup has not moved to hex.
  • A review confirms a named color, such as teal, resolves to the hex the team thinks it does.

The opening teal

#427f9c

HEX: #427f9c RGB: rgb(66, 127, 156) HSL: hsl(199 41% 44%) HSV: 199° 58% 61% OKLCH: oklch(0.57 0.08 231)

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

They share a hue number and define saturation and lightness differently. For #427f9c the hue is 199 in both, saturation is 41% in HSL and 58% in HSV, and the third number is not the same scale.