#52791F#52791F

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

Color values

HEX#52791F
RGBrgb(82, 121, 31)
HSLhsl(86, 59%, 30%)
HSVhsv(86, 74%, 47%)
CMYKcmyk(32.2%, 0%, 74.4%, 52.5%)
CIE-LABlab(46.40, -28.57, 42.55)
CIE-LCHlch(46.40, 51.25, 123.88°)
OKLaboklab(52.83% -0.081 0.0956)
OKLCHoklch(52.83% 0.125 130.3)
XYZxyz(10.5643, 15.5672, 3.7442)
Luminance0.1557 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52791F #461F79
analogous
#79731F #52791F #25791F
triadic
#52791F #1F5279 #791F52
tetradic
#52791F #1F7973 #461F79 #791F25
square
#52791F #1F7973 #461F79 #791F25
split-complementary
#52791F #1F2579 #731F79
monochromatic
#111806 #314813 #52791F #73AA2B #93CF43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##52791F#FFFFFF#000000##FFFFFF
##52791F1.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)
#7F700F
Deuteranopia (green-blind)
#796D27
Tritanopia (blue-blind)
#547467
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #52791f;
/* rgb */ color: rgb(82, 121, 31);
/* oklch */ color: oklch(52.8% 0.125 130.3);
Tailwind
colors: {
  custom: {
    50: '#86a061',
    500: '#52791f',
    950: '#000000',
  },
}
SCSS
$custom: #52791f;
$custom-light: #86a061;
$custom-dark: #000000;
JSON
{
  "hex": "#52791f",
  "rgb": {
    "r": 82,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 86,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52829,
    "c": 0.12536,
    "h": 130.3
  },
  "luminance": 0.15568
}

Semantic roles & 50–950 ramp

primary
#52791F
secondary
#7347AC
accent
#45E289
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #52791F

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

Preview Lab → · Contrast checker → · Palette generator →

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