#668F17#668F17

#668F17 is a mid, vivid yellow-green. Relative luminance 0.225; OKLCH L 59.8% C 0.148 H 127.8°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#668F17
RGBrgb(102, 143, 23)
HSLhsl(81, 72%, 33%)
HSVhsv(81, 84%, 56%)
CMYKcmyk(28.7%, 0%, 83.9%, 43.9%)
CIE-LABlab(54.59, -31.33, 53.35)
CIE-LCHlch(54.59, 61.88, 120.43°)
OKLaboklab(59.79% -0.0904 0.1166)
OKLCHoklch(59.79% 0.148 127.8)
XYZxyz(15.4566, 22.5312, 4.3451)
Luminance0.2253 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668F17 #40178F
analogous
#8F7C17 #668F17 #2A8F17
triadic
#668F17 #17668F #8F1766
tetradic
#668F17 #178F7C #40178F #8F172A
square
#668F17 #178F7C #40178F #8F172A
split-complementary
#668F17 #172A8F #7C178F
monochromatic
#1B2606 #405A0F #668F17 #8CC41F #AAE040

Accessibility & contrast

On white

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

On black

5.51
#668F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #668F17
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##668F17#FFFFFF#000000##000000
##668F171.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978400
Deuteranopia (green-blind)
#918225
Tritanopia (blue-blind)
#6A887A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #668f17;
/* rgb */ color: rgb(102, 143, 23);
/* oklch */ color: oklch(59.8% 0.148 127.8);
Tailwind
colors: {
  custom: {
    50: '#96b061',
    500: '#668f17',
    950: '#000000',
  },
}
SCSS
$custom: #668f17;
$custom-light: #96b061;
$custom-dark: #000000;
JSON
{
  "hex": "#668f17",
  "rgb": {
    "r": 102,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 80.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59794,
    "c": 0.14751,
    "h": 127.8
  },
  "luminance": 0.22532
}

Semantic roles & 50–950 ramp

primary
#668F17
secondary
#6D41C1
accent
#39EF77
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1005
muted
#7E7F7A

Preview Lab

Preview with #668F17

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

Preview Lab → · Contrast checker → · Palette generator →

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