#838E1F#838E1F

#838E1F is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 61.8% C 0.129 H 115.3°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#838E1F
RGBrgb(131, 142, 31)
HSLhsl(66, 64%, 34%)
HSVhsv(66, 78%, 56%)
CMYKcmyk(7.7%, 0%, 78.2%, 44.3%)
CIE-LABlab(56.36, -18.10, 53.30)
CIE-LCHlch(56.36, 56.29, 108.76°)
OKLaboklab(61.76% -0.0553 0.1169)
OKLCHoklch(61.76% 0.129 115.3)
XYZxyz(19.2809, 24.2706, 4.9650)
Luminance0.2427 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E1F #2A1F8E
analogous
#8E621F #838E1F #4C8E1F
triadic
#838E1F #1F838E #8E1F83
tetradic
#838E1F #1F8E62 #2A1F8E #8E1F4C
square
#838E1F #1F8E62 #2A1F8E #8E1F4C
split-complementary
#838E1F #1F4C8E #621F8E
monochromatic
#262A09 #555C14 #838E1F #B1C02A #CBD94F

Accessibility & contrast

On white

3.59
#838E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#838E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838E1F
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838E1F#FFFFFF#000000##000000
##838E1F1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998602
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#8C8579
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e1f;
/* rgb */ color: rgb(131, 142, 31);
/* oklch */ color: oklch(61.8% 0.129 115.3);
Tailwind
colors: {
  custom: {
    50: '#aaae65',
    500: '#838e1f',
    950: '#000000',
  },
}
SCSS
$custom: #838e1f;
$custom-light: #aaae65;
$custom-dark: #000000;
JSON
{
  "hex": "#838e1f",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 65.946,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.61758,
    "c": 0.12931,
    "h": 115.3
  },
  "luminance": 0.2427
}

Semantic roles & 50–950 ramp

primary
#838E1F
secondary
#584DBB
accent
#41E751
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838E1F

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

Preview Lab → · Contrast checker → · Palette generator →

#838E1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva