#817E23#817E23

#817E23 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.8% C 0.110 H 107.5°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#817E23
RGBrgb(129, 126, 35)
HSLhsl(58, 57%, 32%)
HSVhsv(58, 73%, 51%)
CMYKcmyk(0%, 2.3%, 72.9%, 49.4%)
CIE-LABlab(51.51, -10.28, 47.20)
CIE-LCHlch(51.51, 48.31, 102.29°)
OKLaboklab(57.84% -0.033 0.1048)
OKLCHoklch(57.84% 0.11 107.5)
XYZxyz(16.8181, 19.7107, 4.5084)
Luminance0.1971 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817E23 #232681
analogous
#814F23 #817E23 #558123
triadic
#817E23 #23817E #7E2381
tetradic
#817E23 #23814F #232681 #812355
square
#817E23 #23814F #232681 #812355
split-complementary
#817E23 #235581 #4F2381
monochromatic
#212009 #514F16 #817E23 #B1AD30 #CFCB4F

Accessibility & contrast

On white

4.25
#817E23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#817E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817E23
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817E23#FFFFFF#000000##000000
##817E231.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897914
Deuteranopia (green-blind)
#8B7C29
Tritanopia (blue-blind)
#8B756C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817e23;
/* rgb */ color: rgb(129, 126, 35);
/* oklch */ color: oklch(57.8% 0.110 107.5);
Tailwind
colors: {
  custom: {
    50: '#a9a365',
    500: '#817e23',
    950: '#000000',
  },
}
SCSS
$custom: #817e23;
$custom-light: #a9a365;
$custom-dark: #000000;
JSON
{
  "hex": "#817e23",
  "rgb": {
    "r": 129,
    "g": 126,
    "b": 35
  },
  "hsl": {
    "h": 58.085,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57844,
    "c": 0.10988,
    "h": 107.5
  },
  "luminance": 0.1971
}

Semantic roles & 50–950 ramp

primary
#817E23
secondary
#4D50B3
accent
#4CE147
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #817E23

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

Preview Lab → · Contrast checker → · Palette generator →

#817E23 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva