#817D23#817D23

#817D23 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.109 H 106.8°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#817D23
RGBrgb(129, 125, 35)
HSLhsl(57, 57%, 32%)
HSVhsv(57, 73%, 51%)
CMYKcmyk(0%, 3.1%, 72.9%, 49.4%)
CIE-LABlab(51.22, -9.73, 46.92)
CIE-LCHlch(51.22, 47.92, 101.72°)
OKLaboklab(57.61% -0.0315 0.1042)
OKLCHoklch(57.61% 0.109 106.8)
XYZxyz(16.6909, 19.4563, 4.4660)
Luminance0.1946 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817D23 #232781
analogous
#814E23 #817D23 #568123
triadic
#817D23 #23817D #7D2381
tetradic
#817D23 #23814E #232781 #812356
square
#817D23 #23814E #232781 #812356
split-complementary
#817D23 #235681 #4E2381
monochromatic
#212009 #514E16 #817D23 #B1AC30 #CFCA4F

Accessibility & contrast

On white

4.29
#817D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#817D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817D23
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817D23#FFFFFF#000000##000000
##817D231.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887814
Deuteranopia (green-blind)
#8A7C29
Tritanopia (blue-blind)
#8B746B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #817d23;
/* rgb */ color: rgb(129, 125, 35);
/* oklch */ color: oklch(57.6% 0.109 106.8);
Tailwind
colors: {
  custom: {
    50: '#a9a264',
    500: '#817d23',
    950: '#000000',
  },
}
SCSS
$custom: #817d23;
$custom-light: #a9a264;
$custom-dark: #000000;
JSON
{
  "hex": "#817d23",
  "rgb": {
    "r": 129,
    "g": 125,
    "b": 35
  },
  "hsl": {
    "h": 57.447,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57611,
    "c": 0.10885,
    "h": 106.8
  },
  "luminance": 0.19456
}

Semantic roles & 50–950 ramp

primary
#817D23
secondary
#4D51B3
accent
#4EE147
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F06
muted
#7F7E7A

Preview Lab

Preview with #817D23

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

Preview Lab → · Contrast checker → · Palette generator →

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