#838E1D#838E1D

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

Color values

HEX#838E1D
RGBrgb(131, 142, 29)
HSLhsl(66, 66%, 34%)
HSVhsv(66, 80%, 56%)
CMYKcmyk(7.7%, 0%, 79.6%, 44.3%)
CIE-LABlab(56.35, -18.18, 53.94)
CIE-LCHlch(56.35, 56.92, 108.63°)
OKLaboklab(61.75% -0.0557 0.1179)
OKLCHoklch(61.75% 0.13 115.3)
XYZxyz(19.2554, 24.2603, 4.8305)
Luminance0.2426 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E1D #281D8E
analogous
#8E601D #838E1D #4A8E1D
triadic
#838E1D #1D838E #8E1D83
tetradic
#838E1D #1D8E60 #281D8E #8E1D4A
square
#838E1D #1D8E60 #281D8E #8E1D4A
split-complementary
#838E1D #1D4A8E #601D8E
monochromatic
#252808 #545B13 #838E1D #B2C127 #CCDA4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##838E1D#FFFFFF#000000##000000
##838E1D1.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)
#998600
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#8C8579
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e1d;
/* rgb */ color: rgb(131, 142, 29);
/* oklch */ color: oklch(61.7% 0.130 115.3);
Tailwind
colors: {
  custom: {
    50: '#aaae64',
    500: '#838e1d',
    950: '#000000',
  },
}
SCSS
$custom: #838e1d;
$custom-light: #aaae64;
$custom-dark: #000000;
JSON
{
  "hex": "#838e1d",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 29
  },
  "hsl": {
    "h": 65.841,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61747,
    "c": 0.13036,
    "h": 115.3
  },
  "luminance": 0.2426
}

Semantic roles & 50–950 ramp

primary
#838E1D
secondary
#554ABD
accent
#3FE94F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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