#838E20#838E20

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

Color values

HEX#838E20
RGBrgb(131, 142, 32)
HSLhsl(66, 63%, 34%)
HSVhsv(66, 77%, 56%)
CMYKcmyk(7.7%, 0%, 77.5%, 44.3%)
CIE-LABlab(56.36, -18.05, 52.97)
CIE-LCHlch(56.36, 55.97, 108.82°)
OKLaboklab(61.76% -0.0551 0.1164)
OKLCHoklch(61.76% 0.129 115.3)
XYZxyz(19.2943, 24.2759, 5.0355)
Luminance0.2428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E20 #2B208E
analogous
#8E6220 #838E20 #4C8E20
triadic
#838E20 #20838E #8E2083
tetradic
#838E20 #208E62 #2B208E #8E204C
square
#838E20 #208E62 #2B208E #8E204C
split-complementary
#838E20 #204C8E #62208E
monochromatic
#272A09 #555C15 #838E20 #B1C02B #CAD851

Accessibility & contrast

On white

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

On black

5.86
#838E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838E20
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838E20#FFFFFF#000000##000000
##838E201.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#998604
Deuteranopia (green-blind)
#98882A
Tritanopia (blue-blind)
#8C8579
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e20;
/* rgb */ color: rgb(131, 142, 32);
/* oklch */ color: oklch(61.8% 0.129 115.3);
Tailwind
colors: {
  custom: {
    50: '#aaae65',
    500: '#838e20',
    950: '#000000',
  },
}
SCSS
$custom: #838e20;
$custom-light: #aaae65;
$custom-dark: #000000;
JSON
{
  "hex": "#838e20",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 66,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61764,
    "c": 0.12876,
    "h": 115.3
  },
  "luminance": 0.24276
}

Semantic roles & 50–950 ramp

primary
#838E20
secondary
#5A4FBB
accent
#42E652
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838E20

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

Preview Lab → · Contrast checker → · Palette generator →

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