#52791B#52791B

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

Color values

HEX#52791B
RGBrgb(82, 121, 27)
HSLhsl(85, 64%, 29%)
HSVhsv(85, 78%, 47%)
CMYKcmyk(32.2%, 0%, 77.7%, 52.5%)
CIE-LABlab(46.38, -28.83, 44.05)
CIE-LCHlch(46.38, 52.65, 123.21°)
OKLaboklab(52.8% -0.0821 0.0981)
OKLCHoklch(52.8% 0.128 129.9)
XYZxyz(10.5148, 15.5474, 3.4836)
Luminance0.1555 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52791B #421B79
analogous
#79711B #52791B #23791B
triadic
#52791B #1B5279 #791B52
tetradic
#52791B #1B7971 #421B79 #791B23
square
#52791B #1B7971 #421B79 #791B23
split-complementary
#52791B #1B2379 #711B79
monochromatic
#111906 #304710 #52791B #74AB26 #94D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##52791B#FFFFFF#000000##FFFFFF
##52791B1.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)
#7F7007
Deuteranopia (green-blind)
#7A6D24
Tritanopia (blue-blind)
#547367
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #52791b;
/* rgb */ color: rgb(82, 121, 27);
/* oklch */ color: oklch(52.8% 0.128 129.9);
Tailwind
colors: {
  custom: {
    50: '#86a05f',
    500: '#52791b',
    950: '#000000',
  },
}
SCSS
$custom: #52791b;
$custom-light: #86a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#52791b",
  "rgb": {
    "r": 82,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 84.894,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52799,
    "c": 0.12794,
    "h": 129.9
  },
  "luminance": 0.15548
}

Semantic roles & 50–950 ramp

primary
#52791B
secondary
#6F43AD
accent
#41E786
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #52791B

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

Preview Lab → · Contrast checker → · Palette generator →

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