#838E1A#838E1A

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

Color values

HEX#838E1A
RGBrgb(131, 142, 26)
HSLhsl(66, 69%, 33%)
HSVhsv(66, 82%, 56%)
CMYKcmyk(7.7%, 0%, 81.7%, 44.3%)
CIE-LABlab(56.33, -18.30, 54.83)
CIE-LCHlch(56.33, 57.81, 108.46°)
OKLaboklab(61.73% -0.0563 0.1192)
OKLCHoklch(61.73% 0.132 115.3)
XYZxyz(19.2201, 24.2462, 4.6446)
Luminance0.2425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E1A #251A8E
analogous
#8E5F1A #838E1A #498E1A
triadic
#838E1A #1A838E #8E1A83
tetradic
#838E1A #1A8E5F #251A8E #8E1A49
square
#838E1A #1A8E5F #251A8E #8E1A49
split-complementary
#838E1A #1A498E #5F1A8E
monochromatic
#242707 #535A11 #838E1A #B3C223 #CFDD45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##838E1A#FFFFFF#000000##000000
##838E1A1.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: #838e1a;
/* rgb */ color: rgb(131, 142, 26);
/* oklch */ color: oklch(61.7% 0.132 115.3);
Tailwind
colors: {
  custom: {
    50: '#abae62',
    500: '#838e1a',
    950: '#000000',
  },
}
SCSS
$custom: #838e1a;
$custom-light: #abae62;
$custom-dark: #000000;
JSON
{
  "hex": "#838e1a",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 26
  },
  "hsl": {
    "h": 65.69,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.61731,
    "c": 0.13183,
    "h": 115.3
  },
  "luminance": 0.24246
}

Semantic roles & 50–950 ramp

primary
#838E1A
secondary
#5145BE
accent
#3CEC4D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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