#838D1F#838D1F

#838D1F is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.5% C 0.128 H 114.9°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#838D1F
RGBrgb(131, 141, 31)
HSLhsl(65, 64%, 34%)
HSVhsv(65, 78%, 55%)
CMYKcmyk(7.1%, 0%, 78%, 44.7%)
CIE-LABlab(56.06, -17.58, 53.03)
CIE-LCHlch(56.06, 55.87, 108.34°)
OKLaboklab(61.52% -0.0539 0.1163)
OKLCHoklch(61.52% 0.128 114.9)
XYZxyz(19.1328, 23.9743, 4.9157)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838D1F #291F8D
analogous
#8D601F #838D1F #4C8D1F
triadic
#838D1F #1F838D #8D1F83
tetradic
#838D1F #1F8D60 #291F8D #8D1F4C
square
#838D1F #1F8D60 #291F8D #8D1F4C
split-complementary
#838D1F #1F4C8D #601F8D
monochromatic
#262909 #545B14 #838D1F #B2BF2A #CCD84E

Accessibility & contrast

On white

3.62
#838D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#838D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838D1F
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838D1F#FFFFFF#000000##000000
##838D1F1.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988602
Deuteranopia (green-blind)
#978729
Tritanopia (blue-blind)
#8C8478
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #838d1f;
/* rgb */ color: rgb(131, 141, 31);
/* oklch */ color: oklch(61.5% 0.128 114.9);
Tailwind
colors: {
  custom: {
    50: '#aaae64',
    500: '#838d1f',
    950: '#000000',
  },
}
SCSS
$custom: #838d1f;
$custom-light: #aaae64;
$custom-dark: #000000;
JSON
{
  "hex": "#838d1f",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 65.455,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61521,
    "c": 0.12817,
    "h": 114.9
  },
  "luminance": 0.23974
}

Semantic roles & 50–950 ramp

primary
#838D1F
secondary
#574DBB
accent
#41E750
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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