#668E28#668E28

#668E28 is a mid, vivid yellow-green. Relative luminance 0.223; OKLCH L 59.6% C 0.137 H 128.6°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#668E28
RGBrgb(102, 142, 40)
HSLhsl(84, 56%, 36%)
HSVhsv(84, 72%, 56%)
CMYKcmyk(28.2%, 0%, 71.8%, 44.3%)
CIE-LABlab(54.37, -29.93, 47.40)
CIE-LCHlch(54.37, 56.06, 122.27°)
OKLaboklab(59.65% -0.0853 0.1068)
OKLCHoklch(59.65% 0.137 128.6)
XYZxyz(15.5355, 22.3236, 5.4975)
Luminance0.2232 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668E28 #50288E
analogous
#8E8328 #668E28 #338E28
triadic
#668E28 #28668E #8E2866
tetradic
#668E28 #288E83 #50288E #8E2833
square
#668E28 #288E83 #50288E #8E2833
split-complementary
#668E28 #28338E #83288E
monochromatic
#212F0D #445E1B #668E28 #88BE35 #A5D25F

Accessibility & contrast

On white

3.84
#668E28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#668E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #668E28
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##668E28#FFFFFF#000000##000000
##668E281.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#958417
Deuteranopia (green-blind)
#8F8131
Tritanopia (blue-blind)
#69887A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #668e28;
/* rgb */ color: rgb(102, 142, 40);
/* oklch */ color: oklch(59.6% 0.137 128.6);
Tailwind
colors: {
  custom: {
    50: '#95af69',
    500: '#668e28',
    950: '#000000',
  },
}
SCSS
$custom: #668e28;
$custom-light: #95af69;
$custom-dark: #000000;
JSON
{
  "hex": "#668e28",
  "rgb": {
    "r": 102,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 83.529,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59648,
    "c": 0.1367,
    "h": 128.6
  },
  "luminance": 0.22324
}

Semantic roles & 50–950 ramp

primary
#668E28
secondary
#7F5BB7
accent
#48DF84
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1007
muted
#7E7F7A

Preview Lab

Preview with #668E28

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

Preview Lab → · Contrast checker → · Palette generator →

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