#837D1F#837D1F

#837D1F is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.8% C 0.111 H 105.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#837D1F
RGBrgb(131, 125, 31)
HSLhsl(56, 62%, 32%)
HSVhsv(56, 76%, 51%)
CMYKcmyk(0%, 4.6%, 76.3%, 48.6%)
CIE-LABlab(51.37, -9.01, 48.66)
CIE-LCHlch(51.37, 49.49, 100.49°)
OKLaboklab(57.77% -0.03 0.107)
OKLCHoklch(57.77% 0.111 105.7)
XYZxyz(16.9417, 19.5921, 4.1853)
Luminance0.1959 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#837D1F #1F2583
analogous
#834B1F #837D1F #57831F
triadic
#837D1F #1F837D #7D1F83
tetradic
#837D1F #1F834B #1F2583 #831F57
square
#837D1F #1F834B #1F2583 #831F57
split-complementary
#837D1F #1F5783 #4B1F83
monochromatic
#201F08 #524E13 #837D1F #B4AC2B #D4CB49

Accessibility & contrast

On white

4.27
#837D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#837D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #837D1F
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##837D1F#FFFFFF#000000##000000
##837D1F1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#8B7C26
Tritanopia (blue-blind)
#8D746B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #837d1f;
/* rgb */ color: rgb(131, 125, 31);
/* oklch */ color: oklch(57.8% 0.111 105.7);
Tailwind
colors: {
  custom: {
    50: '#aaa262',
    500: '#837d1f',
    950: '#000000',
  },
}
SCSS
$custom: #837d1f;
$custom-light: #aaa262;
$custom-dark: #000000;
JSON
{
  "hex": "#837d1f",
  "rgb": {
    "r": 131,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 56.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57771,
    "c": 0.11115,
    "h": 105.7
  },
  "luminance": 0.19591
}

Semantic roles & 50–950 ramp

primary
#837D1F
secondary
#484FB6
accent
#4DE543
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #837D1F

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

Preview Lab → · Contrast checker → · Palette generator →

#837D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva