#666D17#666D17

#666D17 is a mid, moderate yellow. Relative luminance 0.138; OKLCH L 51.2% C 0.105 H 114.3°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#666D17
RGBrgb(102, 109, 23)
HSLhsl(65, 65%, 26%)
HSVhsv(65, 79%, 43%)
CMYKcmyk(6.4%, 0%, 78.9%, 57.3%)
CIE-LABlab(43.98, -14.11, 43.73)
CIE-LCHlch(43.98, 45.95, 107.89°)
OKLaboklab(51.22% -0.0433 0.0961)
OKLCHoklch(51.22% 0.105 114.3)
XYZxyz(11.1031, 13.8241, 2.8939)
Luminance0.1382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#666D17 #1E176D
analogous
#6D4917 #666D17 #3B6D17
triadic
#666D17 #17666D #6D1766
tetradic
#666D17 #176D49 #1E176D #6D173B
square
#666D17 #176D49 #1E176D #6D173B
split-complementary
#666D17 #173B6D #49176D
monochromatic
#181905 #373A0C #666D17 #95A022 #C5D22C

Accessibility & contrast

On white

5.58
#666D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#666D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #666D17
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##666D17#FFFFFF#000000##FFFFFF
##666D171.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756704
Deuteranopia (green-blind)
#75691E
Tritanopia (blue-blind)
#6D665D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #666d17;
/* rgb */ color: rgb(102, 109, 23);
/* oklch */ color: oklch(51.2% 0.105 114.3);
Tailwind
colors: {
  custom: {
    50: '#94965c',
    500: '#666d17',
    950: '#000000',
  },
}
SCSS
$custom: #666d17;
$custom-light: #94965c;
$custom-dark: #000000;
JSON
{
  "hex": "#666d17",
  "rgb": {
    "r": 102,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 64.884,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.51223,
    "c": 0.10545,
    "h": 114.3
  },
  "luminance": 0.13824
}

Semantic roles & 50–950 ramp

primary
#666D17
secondary
#453DA3
accent
#40E84D
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0E0D04
muted
#7E7E79

Preview Lab

Preview with #666D17

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

Preview Lab → · Contrast checker → · Palette generator →

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