#668317#668317

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

Color values

HEX#668317
RGBrgb(102, 131, 23)
HSLhsl(76, 70%, 30%)
HSVhsv(76, 82%, 51%)
CMYKcmyk(22.1%, 0%, 82.4%, 48.6%)
CIE-LABlab(50.83, -25.56, 49.99)
CIE-LCHlch(50.83, 56.15, 117.08°)
OKLaboklab(56.74% -0.0748 0.1094)
OKLCHoklch(56.74% 0.133 124.3)
XYZxyz(13.7506, 19.1191, 3.7764)
Luminance0.1912 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#668317 #341783
analogous
#836A17 #668317 #308317
triadic
#668317 #176683 #831766
tetradic
#668317 #17836A #341783 #831730
square
#668317 #17836A #341783 #831730
split-complementary
#668317 #173083 #6A1783
monochromatic
#151B05 #3D4F0E #668317 #8FB720 #B0DC38

Accessibility & contrast

On white

4.35
#668317 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##668317#FFFFFF#000000##000000
##6683171.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #668317;
/* rgb */ color: rgb(102, 131, 23);
/* oklch */ color: oklch(56.7% 0.133 124.3);
Tailwind
colors: {
  custom: {
    50: '#95a75f',
    500: '#668317',
    950: '#000000',
  },
}
SCSS
$custom: #668317;
$custom-light: #95a75f;
$custom-dark: #000000;
JSON
{
  "hex": "#668317",
  "rgb": {
    "r": 102,
    "g": 131,
    "b": 23
  },
  "hsl": {
    "h": 76.111,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56743,
    "c": 0.13253,
    "h": 124.3
  },
  "luminance": 0.19119
}

Semantic roles & 50–950 ramp

primary
#668317
secondary
#5F3FB7
accent
#3BED6B
background
#F9FAF5
surface
#F2F4EA
border
#CCCEC6
text
#0E0F05
muted
#7E7F79

Preview Lab

Preview with #668317

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

Preview Lab → · Contrast checker → · Palette generator →

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