#668222#668222

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

Color values

HEX#668222
RGBrgb(102, 130, 34)
HSLhsl(78, 59%, 32%)
HSVhsv(78, 74%, 51%)
CMYKcmyk(21.5%, 0%, 73.8%, 49%)
CIE-LABlab(50.58, -24.48, 45.96)
CIE-LCHlch(50.58, 52.07, 118.05°)
OKLaboklab(56.56% -0.0709 0.1028)
OKLCHoklch(56.56% 0.125 124.6)
XYZxyz(13.7510, 18.9054, 4.4377)
Luminance0.1891 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668222 #3E2282
analogous
#826E22 #668222 #368222
triadic
#668222 #226682 #822266
tetradic
#668222 #22826E #3E2282 #822236
square
#668222 #22826E #3E2282 #822236
split-complementary
#668222 #223682 #6E2282
monochromatic
#1A2109 #405115 #668222 #8CB32F #AAD14E

Accessibility & contrast

On white

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

On black

4.78
#668222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #668222
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##668222#FFFFFF#000000##000000
##6682221.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897911
Deuteranopia (green-blind)
#86782A
Tritanopia (blue-blind)
#6B7B6F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #668222;
/* rgb */ color: rgb(102, 130, 34);
/* oklch */ color: oklch(56.6% 0.125 124.6);
Tailwind
colors: {
  custom: {
    50: '#95a664',
    500: '#668222',
    950: '#000000',
  },
}
SCSS
$custom: #668222;
$custom-light: #95a664;
$custom-dark: #000000;
JSON
{
  "hex": "#668222",
  "rgb": {
    "r": 102,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 77.5,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5656,
    "c": 0.12491,
    "h": 124.6
  },
  "luminance": 0.18906
}

Semantic roles & 50–950 ramp

primary
#668222
secondary
#6A4CB4
accent
#46E273
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E0F06
muted
#7E7F7A

Preview Lab

Preview with #668222

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

Preview Lab → · Contrast checker → · Palette generator →

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