#838222#838222

#838222 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.0% C 0.114 H 108.8°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#838222
RGBrgb(131, 130, 34)
HSLhsl(59, 59%, 32%)
HSVhsv(59, 74%, 51%)
CMYKcmyk(0%, 0.8%, 74%, 48.6%)
CIE-LABlab(52.85, -11.59, 48.95)
CIE-LCHlch(52.85, 50.30, 103.32°)
OKLaboklab(58.95% -0.0369 0.1082)
OKLCHoklch(58.95% 0.114 108.8)
XYZxyz(17.6321, 20.9066, 4.6196)
Luminance0.2091 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838222 #222383
analogous
#835122 #838222 #548322
triadic
#838222 #228382 #822283
tetradic
#838222 #228351 #222383 #832254
square
#838222 #228351 #222383 #832254
split-complementary
#838222 #225483 #512283
monochromatic
#222209 #525215 #838222 #B4B22F #D1D04E

Accessibility & contrast

On white

4.05
#838222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#838222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838222
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838222#FFFFFF#000000##000000
##8382221.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C10
Deuteranopia (green-blind)
#8E8029
Tritanopia (blue-blind)
#8D796F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #838222;
/* rgb */ color: rgb(131, 130, 34);
/* oklch */ color: oklch(59.0% 0.114 108.8);
Tailwind
colors: {
  custom: {
    50: '#aaa665',
    500: '#838222',
    950: '#000000',
  },
}
SCSS
$custom: #838222;
$custom-light: #aaa665;
$custom-dark: #000000;
JSON
{
  "hex": "#838222",
  "rgb": {
    "r": 131,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 59.381,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58953,
    "c": 0.11434,
    "h": 108.8
  },
  "luminance": 0.20906
}

Semantic roles & 50–950 ramp

primary
#838222
secondary
#4C4DB4
accent
#47E246
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #838222

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

Preview Lab → · Contrast checker → · Palette generator →

#838222 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva