#5C821B#5C821B

#5C821B is a mid, vivid yellow-green. Relative luminance 0.183; OKLCH L 55.8% C 0.134 H 128.4°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#5C821B
RGBrgb(92, 130, 27)
HSLhsl(82, 66%, 31%)
HSVhsv(82, 79%, 51%)
CMYKcmyk(29.2%, 0%, 79.2%, 49%)
CIE-LABlab(49.88, -29.07, 47.61)
CIE-LCHlch(49.88, 55.78, 121.40°)
OKLaboklab(55.81% -0.0834 0.1054)
OKLCHoklch(55.81% 0.134 128.4)
XYZxyz(12.5941, 18.3194, 3.9092)
Luminance0.1832 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C821B #411B82
analogous
#82741B #5C821B #28821B
triadic
#5C821B #1B5C82 #821B5C
tetradic
#5C821B #1B8274 #411B82 #821B28
square
#5C821B #1B8274 #411B82 #821B28
split-complementary
#5C821B #1B2882 #741B82
monochromatic
#141D06 #384F10 #5C821B #80B526 #A0D740

Accessibility & contrast

On white

4.50
#5C821B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#5C821B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C821B
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C821B#FFFFFF#000000##000000
##5C821B1.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897801
Deuteranopia (green-blind)
#847626
Tritanopia (blue-blind)
#5F7C6F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5c821b;
/* rgb */ color: rgb(92, 130, 27);
/* oklch */ color: oklch(55.8% 0.134 128.4);
Tailwind
colors: {
  custom: {
    50: '#8ea660',
    500: '#5c821b',
    950: '#000000',
  },
}
SCSS
$custom: #5c821b;
$custom-light: #8ea660;
$custom-dark: #000000;
JSON
{
  "hex": "#5c821b",
  "rgb": {
    "r": 92,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 82.136,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55813,
    "c": 0.13436,
    "h": 128.4
  },
  "luminance": 0.1832
}

Semantic roles & 50–950 ramp

primary
#5C821B
secondary
#6D43B6
accent
#3FE97E
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5C821B

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

Preview Lab → · Contrast checker → · Palette generator →

#5C821B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva