#838E22#838E22

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

Color values

HEX#838E22
RGBrgb(131, 142, 34)
HSLhsl(66, 61%, 35%)
HSVhsv(66, 76%, 56%)
CMYKcmyk(7.7%, 0%, 76.1%, 44.3%)
CIE-LABlab(56.37, -17.96, 52.30)
CIE-LCHlch(56.37, 55.30, 108.95°)
OKLaboklab(61.78% -0.0547 0.1153)
OKLCHoklch(61.78% 0.128 115.4)
XYZxyz(19.3223, 24.2871, 5.1831)
Luminance0.2429 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E22 #2D228E
analogous
#8E6322 #838E22 #4D8E22
triadic
#838E22 #22838E #8E2283
tetradic
#838E22 #228E63 #2D228E #8E224D
square
#838E22 #228E63 #2D228E #8E224D
split-complementary
#838E22 #224D8E #63228E
monochromatic
#282B0A #555D16 #838E22 #B1BF2E #C9D654

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##838E22#FFFFFF#000000##000000
##838E221.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)
#98860A
Deuteranopia (green-blind)
#98882B
Tritanopia (blue-blind)
#8C857A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e22;
/* rgb */ color: rgb(131, 142, 34);
/* oklch */ color: oklch(61.8% 0.128 115.4);
Tailwind
colors: {
  custom: {
    50: '#aaae66',
    500: '#838e22',
    950: '#000000',
  },
}
SCSS
$custom: #838e22;
$custom-light: #aaae66;
$custom-dark: #000000;
JSON
{
  "hex": "#838e22",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 66.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61776,
    "c": 0.1276,
    "h": 115.4
  },
  "luminance": 0.24287
}

Semantic roles & 50–950 ramp

primary
#838E22
secondary
#5C52BA
accent
#43E454
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838E22

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

Preview Lab → · Contrast checker → · Palette generator →

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