#666812#666812

#666812 is a mid, moderate yellow. Relative luminance 0.128; OKLCH L 50.0% C 0.103 H 111.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#666812
RGBrgb(102, 104, 18)
HSLhsl(61, 70%, 24%)
HSVhsv(61, 83%, 41%)
CMYKcmyk(1.9%, 0%, 82.7%, 59.2%)
CIE-LABlab(42.41, -11.57, 44.01)
CIE-LCHlch(42.41, 45.50, 104.73°)
OKLaboklab(49.96% -0.0367 0.0957)
OKLCHoklch(49.96% 0.103 111)
XYZxyz(10.5394, 12.7694, 2.4817)
Luminance0.1277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#666812 #141268
analogous
#683F12 #666812 #3B6812
triadic
#666812 #126668 #681266
tetradic
#666812 #12683F #141268 #68123B
square
#666812 #12683F #141268 #68123B
split-complementary
#666812 #123B68 #3F1268
monochromatic
#1A1A05 #333409 #666812 #999C1B #CCD024

Accessibility & contrast

On white

5.91
#666812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#666812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #666812
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##666812#FFFFFF#000000##FFFFFF
##6668121.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716300
Deuteranopia (green-blind)
#71651A
Tritanopia (blue-blind)
#6E6158
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #666812;
/* rgb */ color: rgb(102, 104, 18);
/* oklch */ color: oklch(50.0% 0.103 111.0);
Tailwind
colors: {
  custom: {
    50: '#959259',
    500: '#666812',
    950: '#000000',
  },
}
SCSS
$custom: #666812;
$custom-light: #959259;
$custom-dark: #000000;
JSON
{
  "hex": "#666812",
  "rgb": {
    "r": 102,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 61.395,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.4996,
    "c": 0.10254,
    "h": 111
  },
  "luminance": 0.12769
}

Semantic roles & 50–950 ramp

primary
#666812
secondary
#3936A0
accent
#3BED3F
background
#F9F8F5
surface
#F2F0E9
border
#CCCBC5
text
#0E0D04
muted
#7E7D79

Preview Lab

Preview with #666812

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

Preview Lab → · Contrast checker → · Palette generator →

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