#50821B#50821B

#50821B is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.1% C 0.141 H 132.6°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#50821B
RGBrgb(80, 130, 27)
HSLhsl(89, 66%, 31%)
HSVhsv(89, 79%, 51%)
CMYKcmyk(38.5%, 0%, 79.2%, 49%)
CIE-LABlab(49.19, -33.78, 46.71)
CIE-LCHlch(49.19, 57.64, 125.87°)
OKLaboklab(55.07% -0.0953 0.1038)
OKLCHoklch(55.07% 0.141 132.6)
XYZxyz(11.4886, 17.7494, 3.8573)
Luminance0.1775 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50821B #4D1B82
analogous
#82801B #50821B #1D821B
triadic
#50821B #1B5082 #821B50
tetradic
#50821B #1B8280 #4D1B82 #821B1D
square
#50821B #1B8280 #4D1B82 #821B1D
split-complementary
#50821B #1B1D82 #801B82
monochromatic
#121D06 #314F10 #50821B #6FB526 #8ED740

Accessibility & contrast

On white

4.62
#50821B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#50821B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #50821B
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50821B#FFFFFF#000000##FFFFFF
##50821B1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887702
Deuteranopia (green-blind)
#817426
Tritanopia (blue-blind)
#517C6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #50821b;
/* rgb */ color: rgb(80, 130, 27);
/* oklch */ color: oklch(55.1% 0.141 132.6);
Tailwind
colors: {
  custom: {
    50: '#86a660',
    500: '#50821b',
    950: '#000000',
  },
}
SCSS
$custom: #50821b;
$custom-light: #86a660;
$custom-dark: #000000;
JSON
{
  "hex": "#50821b",
  "rgb": {
    "r": 80,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 89.126,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55066,
    "c": 0.14091,
    "h": 132.6
  },
  "luminance": 0.1775
}

Semantic roles & 50–950 ramp

primary
#50821B
secondary
#7B43B6
accent
#3FE991
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #50821B

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

Preview Lab → · Contrast checker → · Palette generator →

#50821B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva