#666A18#666A18

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

Color values

HEX#666A18
RGBrgb(102, 106, 24)
HSLhsl(63, 63%, 25%)
HSVhsv(63, 77%, 42%)
CMYKcmyk(3.8%, 0%, 77.4%, 58.4%)
CIE-LABlab(43.06, -12.41, 42.50)
CIE-LCHlch(43.06, 44.27, 106.28°)
OKLaboklab(50.49% -0.0385 0.0937)
OKLCHoklch(50.49% 0.101 112.3)
XYZxyz(10.7987, 13.1991, 2.8428)
Luminance0.1320 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#666A18 #1C186A
analogous
#6A4518 #666A18 #3D6A18
triadic
#666A18 #18666A #6A1866
tetradic
#666A18 #186A45 #1C186A #6A183D
square
#666A18 #186A45 #1C186A #6A183D
split-complementary
#666A18 #183D6A #45186A
monochromatic
#181906 #36380D #666A18 #969C23 #C6CE2F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##666A18#FFFFFF#000000##FFFFFF
##666A181.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)
#736507
Deuteranopia (green-blind)
#73671F
Tritanopia (blue-blind)
#6D635A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #666a18;
/* rgb */ color: rgb(102, 106, 24);
/* oklch */ color: oklch(50.5% 0.101 112.3);
Tailwind
colors: {
  custom: {
    50: '#94945c',
    500: '#666a18',
    950: '#000000',
  },
}
SCSS
$custom: #666a18;
$custom-light: #94945c;
$custom-dark: #000000;
JSON
{
  "hex": "#666a18",
  "rgb": {
    "r": 102,
    "g": 106,
    "b": 24
  },
  "hsl": {
    "h": 62.927,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.50489,
    "c": 0.10133,
    "h": 112.3
  },
  "luminance": 0.13199
}

Semantic roles & 50–950 ramp

primary
#666A18
secondary
#433EA0
accent
#42E64A
background
#F9F9F5
surface
#F2F1E9
border
#CCCBC5
text
#0E0D04
muted
#7E7E79

Preview Lab

Preview with #666A18

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

Preview Lab → · Contrast checker → · Palette generator →

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