#666918#666918

#666918 is a mid, moderate yellow. Relative luminance 0.130; OKLCH L 50.2% C 0.100 H 111.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#666918
RGBrgb(102, 105, 24)
HSLhsl(62, 63%, 25%)
HSVhsv(62, 77%, 41%)
CMYKcmyk(2.9%, 0%, 77.1%, 58.8%)
CIE-LABlab(42.75, -11.85, 42.21)
CIE-LCHlch(42.75, 43.84, 105.69°)
OKLaboklab(50.24% -0.037 0.0931)
OKLCHoklch(50.24% 0.1 111.7)
XYZxyz(10.6963, 12.9941, 2.8086)
Luminance0.1299 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#666918 #1B1869
analogous
#694318 #666918 #3D6918
triadic
#666918 #186669 #691866
tetradic
#666918 #186943 #1B1869 #69183D
square
#666918 #186943 #1B1869 #69183D
split-complementary
#666918 #183D69 #431869
monochromatic
#181906 #36370D #666918 #969B23 #C7CD2F

Accessibility & contrast

On white

5.84
#666918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#666918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #666918
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##666918#FFFFFF#000000##FFFFFF
##6669181.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726408
Deuteranopia (green-blind)
#72661F
Tritanopia (blue-blind)
#6D625A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #666918;
/* rgb */ color: rgb(102, 105, 24);
/* oklch */ color: oklch(50.2% 0.100 111.7);
Tailwind
colors: {
  custom: {
    50: '#94935c',
    500: '#666918',
    950: '#000000',
  },
}
SCSS
$custom: #666918;
$custom-light: #94935c;
$custom-dark: #000000;
JSON
{
  "hex": "#666918",
  "rgb": {
    "r": 102,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 62.222,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.50244,
    "c": 0.10018,
    "h": 111.7
  },
  "luminance": 0.12994
}

Semantic roles & 50–950 ramp

primary
#666918
secondary
#413E9F
accent
#42E648
background
#F9F9F5
surface
#F2F1E9
border
#CCCBC5
text
#0E0D04
muted
#7E7E79

Preview Lab

Preview with #666918

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

Preview Lab → · Contrast checker → · Palette generator →

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