#817318#817318

#817318 is a mid, moderate yellow. Relative luminance 0.170; OKLCH L 55.2% C 0.106 H 100.0°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#817318
RGBrgb(129, 115, 24)
HSLhsl(52, 69%, 30%)
HSVhsv(52, 81%, 51%)
CMYKcmyk(0%, 10.9%, 81.4%, 49.4%)
CIE-LABlab(48.25, -4.67, 48.20)
CIE-LCHlch(48.25, 48.43, 95.54°)
OKLaboklab(55.23% -0.0184 0.1047)
OKLCHoklch(55.23% 0.106 100)
XYZxyz(15.3496, 16.9953, 3.3359)
Luminance0.1699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817318 #182681
analogous
#813F18 #817318 #5A8118
triadic
#817318 #188173 #731881
tetradic
#817318 #18813F #182681 #81185A
square
#817318 #18813F #182681 #81185A
split-complementary
#817318 #185A81 #3F1881
monochromatic
#1A1705 #4D450E #817318 #B5A122 #DAC539

Accessibility & contrast

On white

4.77
#817318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#817318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #817318
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817318#FFFFFF#000000##FFFFFF
##8173181.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7002
Deuteranopia (green-blind)
#83751F
Tritanopia (blue-blind)
#8C6A62
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #817318;
/* rgb */ color: rgb(129, 115, 24);
/* oklch */ color: oklch(55.2% 0.106 100.0);
Tailwind
colors: {
  custom: {
    50: '#a99a5e',
    500: '#817318',
    950: '#000000',
  },
}
SCSS
$custom: #817318;
$custom-light: #a99a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#817318",
  "rgb": {
    "r": 129,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 52,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.55234,
    "c": 0.1063,
    "h": 100
  },
  "luminance": 0.16995
}

Semantic roles & 50–950 ramp

primary
#817318
secondary
#404FB5
accent
#54EB3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #817318

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

Preview Lab → · Contrast checker → · Palette generator →

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