#668F21#668F21

#668F21 is a mid, vivid yellow-green. Relative luminance 0.226; OKLCH L 59.9% C 0.142 H 128.3°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#668F21
RGBrgb(102, 143, 33)
HSLhsl(82, 63%, 35%)
HSVhsv(82, 77%, 56%)
CMYKcmyk(28.7%, 0%, 76.9%, 43.9%)
CIE-LABlab(54.64, -30.85, 50.28)
CIE-LCHlch(54.64, 58.99, 121.53°)
OKLaboklab(59.85% -0.0884 0.1117)
OKLCHoklch(59.85% 0.142 128.3)
XYZxyz(15.5765, 22.5791, 4.9761)
Luminance0.2258 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668F21 #4A218F
analogous
#8F8121 #668F21 #2F8F21
triadic
#668F21 #21668F #8F2166
tetradic
#668F21 #218F81 #4A218F #8F212F
square
#668F21 #218F81 #4A218F #8F212F
split-complementary
#668F21 #212F8F #81218F
monochromatic
#1F2C0A #435D16 #668F21 #89C12C #A6D753

Accessibility & contrast

On white

3.81
#668F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#668F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #668F21
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##668F21#FFFFFF#000000##000000
##668F211.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968507
Deuteranopia (green-blind)
#91822C
Tritanopia (blue-blind)
#6A887A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #668f21;
/* rgb */ color: rgb(102, 143, 33);
/* oklch */ color: oklch(59.9% 0.142 128.3);
Tailwind
colors: {
  custom: {
    50: '#95b065',
    500: '#668f21',
    950: '#000000',
  },
}
SCSS
$custom: #668f21;
$custom-light: #95b065;
$custom-dark: #000000;
JSON
{
  "hex": "#668f21",
  "rgb": {
    "r": 102,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 82.364,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59851,
    "c": 0.14245,
    "h": 128.3
  },
  "luminance": 0.2258
}

Semantic roles & 50–950 ramp

primary
#668F21
secondary
#7851BB
accent
#42E67F
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #668F21

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#668F21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva