#838D22#838D22

#838D22 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.5% C 0.126 H 114.9°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#838D22
RGBrgb(131, 141, 34)
HSLhsl(66, 61%, 34%)
HSVhsv(66, 76%, 55%)
CMYKcmyk(7.1%, 0%, 75.9%, 44.7%)
CIE-LABlab(56.08, -17.44, 52.02)
CIE-LCHlch(56.08, 54.87, 108.53°)
OKLaboklab(61.54% -0.0532 0.1147)
OKLCHoklch(61.54% 0.126 114.9)
XYZxyz(19.1742, 23.9909, 5.1337)
Luminance0.2399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838D22 #2C228D
analogous
#8D6122 #838D22 #4E8D22
triadic
#838D22 #22838D #8D2283
tetradic
#838D22 #228D61 #2C228D #8D224E
square
#838D22 #228D61 #2C228D #8D224E
split-complementary
#838D22 #224E8D #61228D
monochromatic
#272A0A #555C16 #838D22 #B1BE2E #CAD654

Accessibility & contrast

On white

3.62
#838D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#838D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838D22
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838D22#FFFFFF#000000##000000
##838D221.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#97860A
Deuteranopia (green-blind)
#97872B
Tritanopia (blue-blind)
#8C8479
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #838d22;
/* rgb */ color: rgb(131, 141, 34);
/* oklch */ color: oklch(61.5% 0.126 114.9);
Tailwind
colors: {
  custom: {
    50: '#aaae66',
    500: '#838d22',
    950: '#000000',
  },
}
SCSS
$custom: #838d22;
$custom-light: #aaae66;
$custom-dark: #000000;
JSON
{
  "hex": "#838d22",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 65.607,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61539,
    "c": 0.12645,
    "h": 114.9
  },
  "luminance": 0.23991
}

Semantic roles & 50–950 ramp

primary
#838D22
secondary
#5B51B9
accent
#44E453
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #838D22

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

Preview Lab → · Contrast checker → · Palette generator →

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