#526212#526212

#526212 is a mid, moderate yellow-green. Relative luminance 0.106; OKLCH L 46.7% C 0.103 H 120.7°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#526212
RGBrgb(82, 98, 18)
HSLhsl(72, 69%, 23%)
HSVhsv(72, 82%, 38%)
CMYKcmyk(16.3%, 0%, 81.6%, 61.6%)
CIE-LABlab(38.85, -17.70, 40.15)
CIE-LCHlch(38.85, 43.88, 113.79°)
OKLaboklab(46.68% -0.0525 0.0883)
OKLCHoklch(46.68% 0.103 120.7)
XYZxyz(7.9567, 10.5729, 2.1938)
Luminance0.1057 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#526212 #221262
analogous
#624A12 #526212 #2A6212
triadic
#526212 #125262 #621252
tetradic
#526212 #12624A #221262 #62122A
square
#526212 #12624A #221262 #62122A
split-complementary
#526212 #122A62 #4A1262
monochromatic
#161A05 #272E09 #526212 #7D961B #A9C925

Accessibility & contrast

On white

6.74
#526212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#526212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #526212
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##526212#FFFFFF#000000##FFFFFF
##5262121.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C01
Deuteranopia (green-blind)
#675C1A
Tritanopia (blue-blind)
#575C53
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #526212;
/* rgb */ color: rgb(82, 98, 18);
/* oklch */ color: oklch(46.7% 0.103 120.7);
Tailwind
colors: {
  custom: {
    50: '#858e57',
    500: '#526212',
    950: '#000000',
  },
}
SCSS
$custom: #526212;
$custom-light: #858e57;
$custom-dark: #000000;
JSON
{
  "hex": "#526212",
  "rgb": {
    "r": 82,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 72,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.46683,
    "c": 0.10275,
    "h": 120.7
  },
  "luminance": 0.10573
}

Semantic roles & 50–950 ramp

primary
#526212
secondary
#4A369A
accent
#3CEC5F
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #526212

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

Preview Lab → · Contrast checker → · Palette generator →

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