#838221#838221

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

Color values

HEX#838221
RGBrgb(131, 130, 33)
HSLhsl(59, 60%, 32%)
HSVhsv(59, 75%, 51%)
CMYKcmyk(0%, 0.8%, 74.8%, 48.6%)
CIE-LABlab(52.84, -11.64, 49.31)
CIE-LCHlch(52.84, 50.67, 103.28°)
OKLaboklab(58.95% -0.0372 0.1088)
OKLCHoklch(58.95% 0.115 108.9)
XYZxyz(17.6179, 20.9009, 4.5448)
Luminance0.2090 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838221 #212283
analogous
#835121 #838221 #538321
triadic
#838221 #218382 #822183
tetradic
#838221 #218351 #212283 #832153
square
#838221 #218351 #212283 #832153
split-complementary
#838221 #215383 #512183
monochromatic
#212108 #525115 #838221 #B4B32D #D2D14C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##838221#FFFFFF#000000##000000
##8382211.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)
#8D7C0E
Deuteranopia (green-blind)
#8E8028
Tritanopia (blue-blind)
#8D796F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #838221;
/* rgb */ color: rgb(131, 130, 33);
/* oklch */ color: oklch(58.9% 0.115 108.9);
Tailwind
colors: {
  custom: {
    50: '#aaa664',
    500: '#838221',
    950: '#000000',
  },
}
SCSS
$custom: #838221;
$custom-light: #aaa664;
$custom-dark: #000000;
JSON
{
  "hex": "#838221",
  "rgb": {
    "r": 131,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 59.388,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58946,
    "c": 0.11498,
    "h": 108.9
  },
  "luminance": 0.209
}

Semantic roles & 50–950 ramp

primary
#838221
secondary
#4B4CB5
accent
#46E345
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #838221

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

Preview Lab → · Contrast checker → · Palette generator →

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