#52791A#52791A

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

Color values

HEX#52791A
RGBrgb(82, 121, 26)
HSLhsl(85, 65%, 29%)
HSVhsv(85, 79%, 47%)
CMYKcmyk(32.2%, 0%, 78.5%, 52.5%)
CIE-LABlab(46.37, -28.89, 44.41)
CIE-LCHlch(46.37, 52.98, 123.05°)
OKLaboklab(52.79% -0.0823 0.0987)
OKLCHoklch(52.79% 0.129 129.8)
XYZxyz(10.5035, 15.5428, 3.4238)
Luminance0.1554 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52791A #411A79
analogous
#79711A #52791A #22791A
triadic
#52791A #1A5279 #791A52
tetradic
#52791A #1A7971 #411A79 #791A22
square
#52791A #1A7971 #411A79 #791A22
split-complementary
#52791A #1A2279 #711A79
monochromatic
#111905 #30470F #52791A #74AB25 #95D439

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##52791A#FFFFFF#000000##FFFFFF
##52791A1.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)
#7F7004
Deuteranopia (green-blind)
#7A6D23
Tritanopia (blue-blind)
#547367
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #52791a;
/* rgb */ color: rgb(82, 121, 26);
/* oklch */ color: oklch(52.8% 0.129 129.8);
Tailwind
colors: {
  custom: {
    50: '#86a05f',
    500: '#52791a',
    950: '#000000',
  },
}
SCSS
$custom: #52791a;
$custom-light: #86a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#52791a",
  "rgb": {
    "r": 82,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 84.632,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52792,
    "c": 0.12854,
    "h": 129.8
  },
  "luminance": 0.15543
}

Semantic roles & 50–950 ramp

primary
#52791A
secondary
#6E41AD
accent
#40E885
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #52791A

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

Preview Lab → · Contrast checker → · Palette generator →

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