#666222#666222

#666222 is a mid, moderate yellow. Relative luminance 0.117; OKLCH L 48.6% C 0.085 H 105.7°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#666222
RGBrgb(102, 98, 34)
HSLhsl(56, 50%, 27%)
HSVhsv(56, 67%, 40%)
CMYKcmyk(0%, 3.9%, 66.7%, 60%)
CIE-LABlab(40.70, -7.27, 35.82)
CIE-LCHlch(40.70, 36.55, 101.47°)
OKLaboklab(48.63% -0.023 0.0815)
OKLCHoklch(48.63% 0.085 105.7)
XYZxyz(10.1363, 11.6760, 3.2328)
Luminance0.1168 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#666222 #222666
analogous
#664022 #666222 #486622
triadic
#666222 #226662 #622266
tetradic
#666222 #226640 #222666 #662248
square
#666222 #226640 #222666 #662248
split-complementary
#666222 #224866 #402266
monochromatic
#171608 #383613 #666222 #948E31 #C0B942

Accessibility & contrast

On white

6.30
#666222 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#666222 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #666222
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##666222#FFFFFF#000000##FFFFFF
##6662221.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5E1A
Deuteranopia (green-blind)
#6C6126
Tritanopia (blue-blind)
#6E5B55
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #666222;
/* rgb */ color: rgb(102, 98, 34);
/* oklch */ color: oklch(48.6% 0.085 105.7);
Tailwind
colors: {
  custom: {
    50: '#948e60',
    500: '#666222',
    950: '#000000',
  },
}
SCSS
$custom: #666222;
$custom-light: #948e60;
$custom-dark: #000000;
JSON
{
  "hex": "#666222",
  "rgb": {
    "r": 102,
    "g": 98,
    "b": 34
  },
  "hsl": {
    "h": 56.471,
    "s": 50,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48626,
    "c": 0.08465,
    "h": 105.7
  },
  "luminance": 0.11676
}

Semantic roles & 50–950 ramp

primary
#666222
secondary
#4A4F9A
accent
#56DA4E
background
#F9F8F5
surface
#F2F0EA
border
#CCCBC6
text
#0D0C05
muted
#7E7D79

Preview Lab

Preview with #666222

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

Preview Lab → · Contrast checker → · Palette generator →

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