#666B1F#666B1F

#666B1F is a mid, moderate yellow. Relative luminance 0.134; OKLCH L 50.8% C 0.098 H 113.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#666B1F
RGBrgb(102, 107, 31)
HSLhsl(64, 55%, 27%)
HSVhsv(64, 71%, 42%)
CMYKcmyk(4.7%, 0%, 71%, 58%)
CIE-LABlab(43.42, -12.56, 40.02)
CIE-LCHlch(43.42, 41.94, 107.43°)
OKLaboklab(50.79% -0.0382 0.0898)
OKLCHoklch(50.79% 0.098 113)
XYZxyz(10.9848, 13.4393, 3.3114)
Luminance0.1344 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#666B1F #241F6B
analogous
#6B4A1F #666B1F #406B1F
triadic
#666B1F #1F666B #6B1F66
tetradic
#666B1F #1F6B4A #241F6B #6B1F40
square
#666B1F #1F6B4A #241F6B #6B1F40
split-complementary
#666B1F #1F406B #4A1F6B
monochromatic
#171807 #393C11 #666B1F #939A2D #BEC73D

Accessibility & contrast

On white

5.69
#666B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#666B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #666B1F
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##666B1F#FFFFFF#000000##FFFFFF
##666B1F1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736614
Deuteranopia (green-blind)
#736724
Tritanopia (blue-blind)
#6D645C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #666b1f;
/* rgb */ color: rgb(102, 107, 31);
/* oklch */ color: oklch(50.8% 0.098 113.0);
Tailwind
colors: {
  custom: {
    50: '#949560',
    500: '#666b1f',
    950: '#000000',
  },
}
SCSS
$custom: #666b1f;
$custom-light: #949560;
$custom-dark: #000000;
JSON
{
  "hex": "#666b1f",
  "rgb": {
    "r": 102,
    "g": 107,
    "b": 31
  },
  "hsl": {
    "h": 63.947,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.5079,
    "c": 0.0976,
    "h": 113
  },
  "luminance": 0.13439
}

Semantic roles & 50–950 ramp

primary
#666B1F
secondary
#4C479F
accent
#49DE53
background
#F9F9F5
surface
#F2F1EA
border
#CCCBC6
text
#0D0D05
muted
#7E7E79

Preview Lab

Preview with #666B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#666B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva