#525112#525112

#525112 is a dark, moderate yellow. Relative luminance 0.077; OKLCH L 42.3% C 0.082 H 108.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#525112
RGBrgb(82, 81, 18)
HSLhsl(59, 64%, 20%)
HSVhsv(59, 78%, 32%)
CMYKcmyk(0%, 1.2%, 78%, 67.8%)
CIE-LABlab(33.40, -8.12, 35.00)
CIE-LCHlch(33.40, 35.93, 103.07°)
OKLaboklab(42.31% -0.0259 0.0775)
OKLCHoklch(42.31% 0.082 108.5)
XYZxyz(6.5315, 7.7226, 1.7187)
Luminance0.0772 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#525112 #121352
analogous
#523112 #525112 #335212
triadic
#525112 #125251 #511252
tetradic
#525112 #125231 #121352 #521233
square
#525112 #125231 #121352 #521233
split-complementary
#525112 #123352 #311252
monochromatic
#191906 #201F07 #525112 #84831D #B6B428

Accessibility & contrast

On white

8.25
#525112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#525112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #525112
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##525112#FFFFFF#000000##FFFFFF
##5251121.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D07
Deuteranopia (green-blind)
#595017
Tritanopia (blue-blind)
#584B45
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #525112;
/* rgb */ color: rgb(82, 81, 18);
/* oklch */ color: oklch(42.3% 0.082 108.5);
Tailwind
colors: {
  custom: {
    50: '#858155',
    500: '#525112',
    950: '#000000',
  },
}
SCSS
$custom: #525112;
$custom-light: #858155;
$custom-dark: #000000;
JSON
{
  "hex": "#525112",
  "rgb": {
    "r": 82,
    "g": 81,
    "b": 18
  },
  "hsl": {
    "h": 59.063,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.42306,
    "c": 0.08168,
    "h": 108.5
  },
  "luminance": 0.07722
}

Semantic roles & 50–950 ramp

primary
#525112
secondary
#35368B
accent
#43E741
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #525112

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

Preview Lab → · Contrast checker → · Palette generator →

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