#527212#527212

#527212 is a mid, vivid yellow-green. Relative luminance 0.139; OKLCH L 50.9% C 0.124 H 127.3°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#527212
RGBrgb(82, 114, 18)
HSLhsl(80, 73%, 26%)
HSVhsv(80, 84%, 45%)
CMYKcmyk(28.1%, 0%, 84.2%, 55.3%)
CIE-LABlab(44.05, -25.93, 44.90)
CIE-LCHlch(44.05, 51.85, 120.01°)
OKLaboklab(50.89% -0.0749 0.0984)
OKLCHoklch(50.89% 0.124 127.3)
XYZxyz(9.6062, 13.8719, 2.7436)
Luminance0.1387 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#527212 #321272
analogous
#726212 #527212 #227212
triadic
#527212 #125272 #721252
tetradic
#527212 #127262 #321272 #721222
square
#527212 #127262 #321272 #721222
split-complementary
#527212 #122272 #621272
monochromatic
#131A04 #2C3D0A #527212 #78A71A #9EDC23

Accessibility & contrast

On white

5.56
#527212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#527212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #527212
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##527212#FFFFFF#000000##FFFFFF
##5272121.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#74681D
Tritanopia (blue-blind)
#556C61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #527212;
/* rgb */ color: rgb(82, 114, 18);
/* oklch */ color: oklch(50.9% 0.124 127.3);
Tailwind
colors: {
  custom: {
    50: '#869a5a',
    500: '#527212',
    950: '#000000',
  },
}
SCSS
$custom: #527212;
$custom-light: #869a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#527212",
  "rgb": {
    "r": 82,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 80,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.50891,
    "c": 0.12365,
    "h": 127.3
  },
  "luminance": 0.13872
}

Semantic roles & 50–950 ramp

primary
#527212
secondary
#5D37A9
accent
#38EF75
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #527212

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

Preview Lab → · Contrast checker → · Palette generator →

#527212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva