#838E1B#838E1B

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

Color values

HEX#838E1B
RGBrgb(131, 142, 27)
HSLhsl(66, 68%, 33%)
HSVhsv(66, 81%, 56%)
CMYKcmyk(7.7%, 0%, 81%, 44.3%)
CIE-LABlab(56.34, -18.27, 54.54)
CIE-LCHlch(56.34, 57.52, 108.52°)
OKLaboklab(61.74% -0.0561 0.1188)
OKLCHoklch(61.74% 0.131 115.3)
XYZxyz(19.2315, 24.2508, 4.7045)
Luminance0.2425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E1B #261B8E
analogous
#8E5F1B #838E1B #498E1B
triadic
#838E1B #1B838E #8E1B83
tetradic
#838E1B #1B8E5F #261B8E #8E1B49
square
#838E1B #1B8E5F #261B8E #8E1B49
split-complementary
#838E1B #1B498E #5F1B8E
monochromatic
#242707 #545B11 #838E1B #B2C125 #CEDC47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##838E1B#FFFFFF#000000##000000
##838E1B1.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)
#988826
Tritanopia (blue-blind)
#8C8579
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e1b;
/* rgb */ color: rgb(131, 142, 27);
/* oklch */ color: oklch(61.7% 0.131 115.3);
Tailwind
colors: {
  custom: {
    50: '#aaae63',
    500: '#838e1b',
    950: '#000000',
  },
}
SCSS
$custom: #838e1b;
$custom-light: #aaae63;
$custom-dark: #000000;
JSON
{
  "hex": "#838e1b",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 65.739,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61736,
    "c": 0.13135,
    "h": 115.3
  },
  "luminance": 0.2425
}

Semantic roles & 50–950 ramp

primary
#838E1B
secondary
#5247BE
accent
#3DEB4E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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