#668F28#668F28

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

Color values

HEX#668F28
RGBrgb(102, 143, 40)
HSLhsl(84, 56%, 36%)
HSVhsv(84, 72%, 56%)
CMYKcmyk(28.7%, 0%, 72%, 43.9%)
CIE-LABlab(54.68, -30.41, 47.72)
CIE-LCHlch(54.68, 56.59, 122.51°)
OKLaboklab(59.9% -0.0866 0.1075)
OKLCHoklch(59.9% 0.138 128.9)
XYZxyz(15.6849, 22.6225, 5.5473)
Luminance0.2262 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668F28 #51288F
analogous
#8F8428 #668F28 #338F28
triadic
#668F28 #28668F #8F2866
tetradic
#668F28 #288F84 #51288F #8F2833
square
#668F28 #288F84 #51288F #8F2833
split-complementary
#668F28 #28338F #84288F
monochromatic
#222F0D #445F1B #668F28 #88BF35 #A4D25F

Accessibility & contrast

On white

3.80
#668F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##668F28#FFFFFF#000000##000000
##668F281.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968517
Deuteranopia (green-blind)
#908231
Tritanopia (blue-blind)
#69897B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #668f28;
/* rgb */ color: rgb(102, 143, 40);
/* oklch */ color: oklch(59.9% 0.138 128.9);
Tailwind
colors: {
  custom: {
    50: '#95b069',
    500: '#668f28',
    950: '#000000',
  },
}
SCSS
$custom: #668f28;
$custom-light: #95b069;
$custom-dark: #000000;
JSON
{
  "hex": "#668f28",
  "rgb": {
    "r": 102,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 83.883,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59902,
    "c": 0.13803,
    "h": 128.9
  },
  "luminance": 0.22623
}

Semantic roles & 50–950 ramp

primary
#668F28
secondary
#805BB8
accent
#48E084
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1007
muted
#7E7F7A

Preview Lab

Preview with #668F28

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

Preview Lab → · Contrast checker → · Palette generator →

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