#666A17#666A17

#666A17 is a mid, moderate yellow. Relative luminance 0.132; OKLCH L 50.5% C 0.102 H 112.3°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#666A17
RGBrgb(102, 106, 23)
HSLhsl(63, 64%, 25%)
HSVhsv(63, 78%, 42%)
CMYKcmyk(3.8%, 0%, 78.3%, 58.4%)
CIE-LABlab(43.06, -12.46, 42.86)
CIE-LCHlch(43.06, 44.64, 106.21°)
OKLaboklab(50.48% -0.0387 0.0943)
OKLCHoklch(50.48% 0.102 112.3)
XYZxyz(10.7885, 13.1950, 2.7890)
Luminance0.1320 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#666A17 #1B176A
analogous
#6A4517 #666A17 #3C6A17
triadic
#666A17 #17666A #6A1766
tetradic
#666A17 #176A45 #1B176A #6A173C
square
#666A17 #176A45 #1B176A #6A173C
split-complementary
#666A17 #173C6A #45176A
monochromatic
#181905 #36380C #666A17 #969C22 #C7CF2D

Accessibility & contrast

On white

5.77
#666A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#666A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #666A17
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##666A17#FFFFFF#000000##FFFFFF
##666A171.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736505
Deuteranopia (green-blind)
#73671E
Tritanopia (blue-blind)
#6D635A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #666a17;
/* rgb */ color: rgb(102, 106, 23);
/* oklch */ color: oklch(50.5% 0.102 112.3);
Tailwind
colors: {
  custom: {
    50: '#94945b',
    500: '#666a17',
    950: '#000000',
  },
}
SCSS
$custom: #666a17;
$custom-light: #94945b;
$custom-dark: #000000;
JSON
{
  "hex": "#666a17",
  "rgb": {
    "r": 102,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 62.892,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.50483,
    "c": 0.10196,
    "h": 112.3
  },
  "luminance": 0.13195
}

Semantic roles & 50–950 ramp

primary
#666A17
secondary
#413DA0
accent
#40E749
background
#F9F9F5
surface
#F2F1E9
border
#CCCBC5
text
#0E0D04
muted
#7E7E79

Preview Lab

Preview with #666A17

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

Preview Lab → · Contrast checker → · Palette generator →

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