#817138#817138

#817138 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 55.1% C 0.079 H 94.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#817138
RGBrgb(129, 113, 56)
HSLhsl(47, 39%, 36%)
HSVhsv(47, 57%, 51%)
CMYKcmyk(0%, 12.4%, 56.6%, 49.4%)
CIE-LABlab(47.96, -1.51, 33.54)
CIE-LCHlch(47.96, 33.57, 92.58°)
OKLaboklab(55.09% -0.0055 0.0789)
OKLCHoklch(55.09% 0.079 94)
XYZxyz(15.6728, 16.7636, 6.1508)
Luminance0.1676 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817138 #384881
analogous
#814D38 #817138 #6D8138
triadic
#817138 #388171 #713881
tetradic
#817138 #38814D #384881 #81386D
square
#817138 #38814D #384881 #81386D
split-complementary
#817138 #386D81 #4D3881
monochromatic
#2C2613 #564C25 #817138 #AC964B #C2B072

Accessibility & contrast

On white

4.82
#817138 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#817138 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #817138
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817138#FFFFFF#000000##FFFFFF
##8171381.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F33
Deuteranopia (green-blind)
#7F743A
Tritanopia (blue-blind)
#8A6964
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #817138;
/* rgb */ color: rgb(129, 113, 56);
/* oklch */ color: oklch(55.1% 0.079 94.0);
Tailwind
colors: {
  custom: {
    50: '#a89970',
    500: '#817138',
    950: '#000000',
  },
}
SCSS
$custom: #817138;
$custom-light: #a89970;
$custom-dark: #000000;
JSON
{
  "hex": "#817138",
  "rgb": {
    "r": 129,
    "g": 113,
    "b": 56
  },
  "hsl": {
    "h": 46.849,
    "s": 39.459,
    "l": 36.275
  },
  "oklch": {
    "l": 0.55091,
    "c": 0.07909,
    "h": 94
  },
  "luminance": 0.16763
}

Semantic roles & 50–950 ramp

primary
#817138
secondary
#6A78AB
accent
#73CF58
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#100D07
muted
#7F7E7A

Preview Lab

Preview with #817138

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

Preview Lab → · Contrast checker → · Palette generator →

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