#838021#838021

#838021 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.5% C 0.113 H 107.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#838021
RGBrgb(131, 128, 33)
HSLhsl(58, 60%, 32%)
HSVhsv(58, 75%, 51%)
CMYKcmyk(0%, 2.3%, 74.8%, 48.6%)
CIE-LABlab(52.26, -10.56, 48.76)
CIE-LCHlch(52.26, 49.89, 102.22°)
OKLaboklab(58.48% -0.0341 0.1076)
OKLCHoklch(58.48% 0.113 107.6)
XYZxyz(17.3544, 20.3740, 4.4570)
Luminance0.2037 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838021 #212483
analogous
#834F21 #838021 #558321
triadic
#838021 #218380 #802183
tetradic
#838021 #21834F #212483 #832155
square
#838021 #21834F #212483 #832155
split-complementary
#838021 #215583 #4F2183
monochromatic
#212008 #525015 #838021 #B4B02D #D2CE4C

Accessibility & contrast

On white

4.14
#838021 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#838021 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838021
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838021#FFFFFF#000000##000000
##8380211.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B0F
Deuteranopia (green-blind)
#8D7E28
Tritanopia (blue-blind)
#8D776E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #838021;
/* rgb */ color: rgb(131, 128, 33);
/* oklch */ color: oklch(58.5% 0.113 107.6);
Tailwind
colors: {
  custom: {
    50: '#aaa464',
    500: '#838021',
    950: '#000000',
  },
}
SCSS
$custom: #838021;
$custom-light: #aaa464;
$custom-dark: #000000;
JSON
{
  "hex": "#838021",
  "rgb": {
    "r": 131,
    "g": 128,
    "b": 33
  },
  "hsl": {
    "h": 58.163,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5848,
    "c": 0.11291,
    "h": 107.6
  },
  "luminance": 0.20373
}

Semantic roles & 50–950 ramp

primary
#838021
secondary
#4B4EB5
accent
#4AE345
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #838021

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

Preview Lab → · Contrast checker → · Palette generator →

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