#525012#525012

#525012 is a dark, moderate yellow. Relative luminance 0.076; OKLCH L 42.1% C 0.081 H 107.6°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#525012
RGBrgb(82, 80, 18)
HSLhsl(58, 64%, 20%)
HSVhsv(58, 78%, 32%)
CMYKcmyk(0%, 2.4%, 78%, 67.8%)
CIE-LABlab(33.08, -7.53, 34.69)
CIE-LCHlch(33.08, 35.50, 102.25°)
OKLaboklab(42.05% -0.0243 0.0768)
OKLCHoklch(42.05% 0.081 107.6)
XYZxyz(6.4578, 7.5750, 1.6941)
Luminance0.0757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#525012 #121452
analogous
#523012 #525012 #345212
triadic
#525012 #125250 #501252
tetradic
#525012 #125230 #121452 #521234
square
#525012 #125230 #121452 #521234
split-complementary
#525012 #123452 #301252
monochromatic
#191806 #201F07 #525012 #84811D #B6B228

Accessibility & contrast

On white

8.35
#525012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#525012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #525012
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##525012#FFFFFF#000000##FFFFFF
##5250121.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D07
Deuteranopia (green-blind)
#584F17
Tritanopia (blue-blind)
#584A44
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #525012;
/* rgb */ color: rgb(82, 80, 18);
/* oklch */ color: oklch(42.1% 0.081 107.6);
Tailwind
colors: {
  custom: {
    50: '#858055',
    500: '#525012',
    950: '#000000',
  },
}
SCSS
$custom: #525012;
$custom-light: #858055;
$custom-dark: #000000;
JSON
{
  "hex": "#525012",
  "rgb": {
    "r": 82,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 58.125,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.42053,
    "c": 0.08055,
    "h": 107.6
  },
  "luminance": 0.07575
}

Semantic roles & 50–950 ramp

primary
#525012
secondary
#35388B
accent
#46E741
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #525012

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

Preview Lab → · Contrast checker → · Palette generator →

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