#668312#668312

#668312 is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.7% C 0.135 H 124.2°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#668312
RGBrgb(102, 131, 18)
HSLhsl(75, 76%, 29%)
HSVhsv(75, 86%, 51%)
CMYKcmyk(22.1%, 0%, 86.3%, 48.6%)
CIE-LABlab(50.80, -25.76, 51.37)
CIE-LCHlch(50.80, 57.46, 116.64°)
OKLaboklab(56.72% -0.0756 0.1115)
OKLCHoklch(56.72% 0.135 124.2)
XYZxyz(13.7051, 19.1009, 3.5370)
Luminance0.1910 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668312 #2F1283
analogous
#836812 #668312 #2E8312
triadic
#668312 #126683 #831266
tetradic
#668312 #128368 #2F1283 #83122E
square
#668312 #128368 #2F1283 #83122E
split-complementary
#668312 #122E83 #681283
monochromatic
#151B04 #3C4D0B #668312 #90B919 #B4E22D

Accessibility & contrast

On white

4.36
#668312 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#668312 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #668312
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##668312#FFFFFF#000000##000000
##6683121.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#87791F
Tritanopia (blue-blind)
#6B7C6F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #668312;
/* rgb */ color: rgb(102, 131, 18);
/* oklch */ color: oklch(56.7% 0.135 124.2);
Tailwind
colors: {
  custom: {
    50: '#95a75d',
    500: '#668312',
    950: '#000000',
  },
}
SCSS
$custom: #668312;
$custom-light: #95a75d;
$custom-dark: #000000;
JSON
{
  "hex": "#668312",
  "rgb": {
    "r": 102,
    "g": 131,
    "b": 18
  },
  "hsl": {
    "h": 75.398,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56719,
    "c": 0.13474,
    "h": 124.2
  },
  "luminance": 0.19101
}

Semantic roles & 50–950 ramp

primary
#668312
secondary
#5938B8
accent
#35F266
background
#F9FAF5
surface
#F2F4E9
border
#CCCEC5
text
#0E0F05
muted
#7E7F79

Preview Lab

Preview with #668312

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

Preview Lab → · Contrast checker → · Palette generator →

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