#52791C#52791C

#52791C is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.8% C 0.127 H 130.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#52791C
RGBrgb(82, 121, 28)
HSLhsl(85, 62%, 29%)
HSVhsv(85, 77%, 47%)
CMYKcmyk(32.2%, 0%, 76.9%, 52.5%)
CIE-LABlab(46.38, -28.77, 43.69)
CIE-LCHlch(46.38, 52.31, 123.37°)
OKLaboklab(52.81% -0.0818 0.0975)
OKLCHoklch(52.81% 0.127 130)
XYZxyz(10.5266, 15.5521, 3.5456)
Luminance0.1555 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52791C #431C79
analogous
#79721C #52791C #24791C
triadic
#52791C #1C5279 #791C52
tetradic
#52791C #1C7972 #431C79 #791C24
square
#52791C #1C7972 #431C79 #791C24
split-complementary
#52791C #1C2479 #721C79
monochromatic
#111906 #304710 #52791C #74AB28 #94D23D

Accessibility & contrast

On white

5.11
#52791C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#52791C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #52791C
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52791C#FFFFFF#000000##FFFFFF
##52791C1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7009
Deuteranopia (green-blind)
#796D25
Tritanopia (blue-blind)
#547467
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #52791c;
/* rgb */ color: rgb(82, 121, 28);
/* oklch */ color: oklch(52.8% 0.127 130.0);
Tailwind
colors: {
  custom: {
    50: '#86a05f',
    500: '#52791c',
    950: '#000000',
  },
}
SCSS
$custom: #52791c;
$custom-light: #86a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#52791c",
  "rgb": {
    "r": 82,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 85.161,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52806,
    "c": 0.12732,
    "h": 130
  },
  "luminance": 0.15552
}

Semantic roles & 50–950 ramp

primary
#52791C
secondary
#7044AD
accent
#42E587
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #52791C

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

Preview Lab → · Contrast checker → · Palette generator →

#52791C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva