#668227#668227

#668227 is a mid, vivid yellow-green. Relative luminance 0.189; OKLCH L 56.6% C 0.121 H 125.0°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#668227
RGBrgb(102, 130, 39)
HSLhsl(78, 54%, 33%)
HSVhsv(78, 70%, 51%)
CMYKcmyk(21.5%, 0%, 70%, 49%)
CIE-LABlab(50.61, -24.15, 43.97)
CIE-LCHlch(50.61, 50.17, 118.77°)
OKLaboklab(56.6% -0.0695 0.0995)
OKLCHoklch(56.6% 0.121 125)
XYZxyz(13.8284, 18.9364, 4.8456)
Luminance0.1894 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668227 #432782
analogous
#827027 #668227 #388227
triadic
#668227 #276682 #822766
tetradic
#668227 #278270 #432782 #822738
square
#668227 #278270 #432782 #822738
split-complementary
#668227 #273882 #702782
monochromatic
#1C240B #415319 #668227 #8BB135 #A8CD57

Accessibility & contrast

On white

4.39
#668227 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#668227 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #668227
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##668227#FFFFFF#000000##000000
##6682271.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#89791A
Deuteranopia (green-blind)
#85782E
Tritanopia (blue-blind)
#6B7C70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #668227;
/* rgb */ color: rgb(102, 130, 39);
/* oklch */ color: oklch(56.6% 0.121 125.0);
Tailwind
colors: {
  custom: {
    50: '#94a667',
    500: '#668227',
    950: '#000000',
  },
}
SCSS
$custom: #668227;
$custom-light: #94a667;
$custom-dark: #000000;
JSON
{
  "hex": "#668227",
  "rgb": {
    "r": 102,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 78.462,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56601,
    "c": 0.12135,
    "h": 125
  },
  "luminance": 0.18937
}

Semantic roles & 50–950 ramp

primary
#668227
secondary
#7053B1
accent
#4BDD78
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #668227

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

Preview Lab → · Contrast checker → · Palette generator →

#668227 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva