#527F12#527F12

#527F12 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.3% C 0.140 H 130.7°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#527F12
RGBrgb(82, 127, 18)
HSLhsl(85, 75%, 28%)
HSVhsv(85, 86%, 50%)
CMYKcmyk(35.4%, 0%, 85.8%, 50.2%)
CIE-LABlab(48.28, -32.10, 48.68)
CIE-LCHlch(48.28, 58.31, 123.40°)
OKLaboklab(54.34% -0.0916 0.1064)
OKLCHoklch(54.34% 0.14 130.7)
XYZxyz(11.1782, 17.0158, 3.2676)
Luminance0.1702 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#527F12 #3F127F
analogous
#7F7512 #527F12 #1B7F12
triadic
#527F12 #12527F #7F1252
tetradic
#527F12 #127F75 #3F127F #7F121B
square
#527F12 #127F75 #3F127F #7F121B
split-complementary
#527F12 #121B7F #75127F
monochromatic
#111B04 #2F490A #527F12 #75B51A #96E12B

Accessibility & contrast

On white

4.77
#527F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#527F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #527F12
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##527F12#FFFFFF#000000##FFFFFF
##527F121.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7F711F
Tritanopia (blue-blind)
#54796C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #527f12;
/* rgb */ color: rgb(82, 127, 18);
/* oklch */ color: oklch(54.3% 0.140 130.7);
Tailwind
colors: {
  custom: {
    50: '#87a45c',
    500: '#527f12',
    950: '#000000',
  },
}
SCSS
$custom: #527f12;
$custom-light: #87a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#527f12",
  "rgb": {
    "r": 82,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 84.771,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.54338,
    "c": 0.14035,
    "h": 130.7
  },
  "luminance": 0.17016
}

Semantic roles & 50–950 ramp

primary
#527F12
secondary
#6C38B5
accent
#36F284
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F04
muted
#7D7F79

Preview Lab

Preview with #527F12

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

Preview Lab → · Contrast checker → · Palette generator →

#527F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva