#50821F#50821F

#50821F is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.1% C 0.139 H 132.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#50821F
RGBrgb(80, 130, 31)
HSLhsl(90, 61%, 32%)
HSVhsv(90, 76%, 51%)
CMYKcmyk(38.5%, 0%, 76.2%, 49%)
CIE-LABlab(49.21, -33.53, 45.31)
CIE-LCHlch(49.21, 56.36, 126.50°)
OKLaboklab(55.09% -0.0944 0.1015)
OKLCHoklch(55.09% 0.139 132.9)
XYZxyz(11.5381, 17.7691, 4.1179)
Luminance0.1777 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#50821F #511F82
analogous
#82821F #50821F #1F8220
triadic
#50821F #1F5082 #821F50
tetradic
#50821F #1F8282 #511F82 #82201F
square
#50821F #1F8282 #511F82 #82201F
split-complementary
#50821F #201F82 #821F82
monochromatic
#131F07 #325113 #50821F #6EB32B #8DD348

Accessibility & contrast

On white

4.61
#50821F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #50821F
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##50821F#FFFFFF#000000##FFFFFF
##50821F1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88770B
Deuteranopia (green-blind)
#817429
Tritanopia (blue-blind)
#507D6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #50821f;
/* rgb */ color: rgb(80, 130, 31);
/* oklch */ color: oklch(55.1% 0.139 132.9);
Tailwind
colors: {
  custom: {
    50: '#86a662',
    500: '#50821f',
    950: '#000000',
  },
}
SCSS
$custom: #50821f;
$custom-light: #86a662;
$custom-dark: #000000;
JSON
{
  "hex": "#50821f",
  "rgb": {
    "r": 80,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 90.303,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55094,
    "c": 0.13856,
    "h": 132.9
  },
  "luminance": 0.1777
}

Semantic roles & 50–950 ramp

primary
#50821F
secondary
#7F48B5
accent
#43E595
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #50821F

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

Preview Lab → · Contrast checker → · Palette generator →

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