#52811F#52811F

#52811F is a mid, vivid yellow-green. Relative luminance 0.176; OKLCH L 54.9% C 0.136 H 132.1°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#52811F
RGBrgb(82, 129, 31)
HSLhsl(89, 61%, 31%)
HSVhsv(89, 76%, 51%)
CMYKcmyk(36.4%, 0%, 76%, 49.4%)
CIE-LABlab(49.00, -32.31, 45.13)
CIE-LCHlch(49.00, 55.51, 125.60°)
OKLaboklab(54.95% -0.0912 0.101)
OKLCHoklch(54.95% 0.136 132.1)
XYZxyz(11.5771, 17.5928, 4.0818)
Luminance0.1759 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52811F #4E1F81
analogous
#817F1F #52811F #21811F
triadic
#52811F #1F5281 #811F52
tetradic
#52811F #1F817F #4E1F81 #811F21
square
#52811F #1F817F #4E1F81 #811F21
split-complementary
#52811F #1F2181 #7F1F81
monochromatic
#131E07 #335013 #52811F #71B22B #90D347

Accessibility & contrast

On white

4.65
#52811F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#52811F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #52811F
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52811F#FFFFFF#000000##FFFFFF
##52811F1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770C
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#537B6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #52811f;
/* rgb */ color: rgb(82, 129, 31);
/* oklch */ color: oklch(54.9% 0.136 132.1);
Tailwind
colors: {
  custom: {
    50: '#87a662',
    500: '#52811f',
    950: '#000000',
  },
}
SCSS
$custom: #52811f;
$custom-light: #87a662;
$custom-dark: #000000;
JSON
{
  "hex": "#52811f",
  "rgb": {
    "r": 82,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 88.776,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54946,
    "c": 0.13613,
    "h": 132.1
  },
  "luminance": 0.17593
}

Semantic roles & 50–950 ramp

primary
#52811F
secondary
#7C48B4
accent
#43E491
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #52811F

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

Preview Lab → · Contrast checker → · Palette generator →

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