#525812#525812

#525812 is a dark, moderate yellow. Relative luminance 0.088; OKLCH L 44.1% C 0.090 H 114.4°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#525812
RGBrgb(82, 88, 18)
HSLhsl(65, 66%, 21%)
HSVhsv(65, 80%, 35%)
CMYKcmyk(6.8%, 0%, 79.5%, 65.5%)
CIE-LABlab(35.63, -12.18, 37.13)
CIE-LCHlch(35.63, 39.08, 108.15°)
OKLaboklab(44.09% -0.0372 0.082)
OKLCHoklch(44.09% 0.09 114.4)
XYZxyz(7.0788, 8.8171, 1.9011)
Luminance0.0882 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#525812 #181258
analogous
#583B12 #525812 #2F5812
triadic
#525812 #125258 #581252
tetradic
#525812 #12583B #181258 #58122F
square
#525812 #12583B #181258 #58122F
split-complementary
#525812 #122F58 #3B1258
monochromatic
#181905 #232508 #525812 #818B1C #B1BE27

Accessibility & contrast

On white

7.60
#525812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#525812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #525812
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##525812#FFFFFF#000000##FFFFFF
##5258121.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5304
Deuteranopia (green-blind)
#5F5418
Tritanopia (blue-blind)
#58524B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #525812;
/* rgb */ color: rgb(82, 88, 18);
/* oklch */ color: oklch(44.1% 0.090 114.4);
Tailwind
colors: {
  custom: {
    50: '#858756',
    500: '#525812',
    950: '#000000',
  },
}
SCSS
$custom: #525812;
$custom-light: #858756;
$custom-dark: #000000;
JSON
{
  "hex": "#525812",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 65.143,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.44091,
    "c": 0.09001,
    "h": 114.4
  },
  "luminance": 0.08817
}

Semantic roles & 50–950 ramp

primary
#525812
secondary
#3D3591
accent
#3FE94D
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #525812

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

Preview Lab → · Contrast checker → · Palette generator →

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