#838F1D#838F1D

#838F1D is a mid, vivid yellow. Relative luminance 0.246; OKLCH L 62.0% C 0.131 H 115.8°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#838F1D
RGBrgb(131, 143, 29)
HSLhsl(66, 66%, 34%)
HSVhsv(66, 80%, 56%)
CMYKcmyk(8.4%, 0%, 79.7%, 43.9%)
CIE-LABlab(56.64, -18.70, 54.20)
CIE-LCHlch(56.64, 57.34, 109.04°)
OKLaboklab(61.98% -0.0571 0.1184)
OKLCHoklch(61.98% 0.131 115.8)
XYZxyz(19.4049, 24.5592, 4.8803)
Luminance0.2456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838F1D #291D8F
analogous
#8F621D #838F1D #4A8F1D
triadic
#838F1D #1D838F #8F1D83
tetradic
#838F1D #1D8F62 #291D8F #8F1D4A
square
#838F1D #1D8F62 #291D8F #8F1D4A
split-complementary
#838F1D #1D4A8F #621D8F
monochromatic
#262908 #545C13 #838F1D #B2C227 #CCDB4C

Accessibility & contrast

On white

3.55
#838F1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#838F1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838F1D
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838F1D#FFFFFF#000000##000000
##838F1D1.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#998928
Tritanopia (blue-blind)
#8C867A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #838f1d;
/* rgb */ color: rgb(131, 143, 29);
/* oklch */ color: oklch(62.0% 0.131 115.8);
Tailwind
colors: {
  custom: {
    50: '#aaaf64',
    500: '#838f1d',
    950: '#000000',
  },
}
SCSS
$custom: #838f1d;
$custom-light: #aaaf64;
$custom-dark: #000000;
JSON
{
  "hex": "#838f1d",
  "rgb": {
    "r": 131,
    "g": 143,
    "b": 29
  },
  "hsl": {
    "h": 66.316,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61984,
    "c": 0.13149,
    "h": 115.8
  },
  "luminance": 0.24559
}

Semantic roles & 50–950 ramp

primary
#838F1D
secondary
#574BBD
accent
#3FE951
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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