#4A520C#4A520C

#4A520C is a dark, moderate yellow. Relative luminance 0.075; OKLCH L 41.8% C 0.089 H 116.3°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#4A520C
RGBrgb(74, 82, 12)
HSLhsl(67, 74%, 18%)
HSVhsv(67, 85%, 32%)
CMYKcmyk(9.8%, 0%, 85.4%, 67.8%)
CIE-LABlab(32.96, -12.96, 36.60)
CIE-LCHlch(32.96, 38.82, 109.50°)
OKLaboklab(41.76% -0.0395 0.0799)
OKLCHoklch(41.76% 0.089 116.3)
XYZxyz(5.9079, 7.5171, 1.4875)
Luminance0.0752 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A520C #140C52
analogous
#52370C #4A520C #27520C
triadic
#4A520C #0C4A52 #520C4A
tetradic
#4A520C #0C5237 #140C52 #520C27
square
#4A520C #0C5237 #140C52 #520C27
split-complementary
#4A520C #0C2752 #370C52
monochromatic
#181B04 #1A1D04 #4A520C #7A8714 #AABD1C

Accessibility & contrast

On white

8.39
#4A520C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4A520C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A520C
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A520C#FFFFFF#000000##FFFFFF
##4A520C1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D00
Deuteranopia (green-blind)
#584E13
Tritanopia (blue-blind)
#4F4D45
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4a520c;
/* rgb */ color: rgb(74, 82, 12);
/* oklch */ color: oklch(41.8% 0.089 116.3);
Tailwind
colors: {
  custom: {
    50: '#7f8252',
    500: '#4a520c',
    950: '#000000',
  },
}
SCSS
$custom: #4a520c;
$custom-light: #7f8252;
$custom-dark: #000000;
JSON
{
  "hex": "#4a520c",
  "rgb": {
    "r": 74,
    "g": 82,
    "b": 12
  },
  "hsl": {
    "h": 66.857,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.41761,
    "c": 0.08914,
    "h": 116.3
  },
  "luminance": 0.07517
}

Semantic roles & 50–950 ramp

primary
#4A520C
secondary
#382C8D
accent
#37F14C
background
#F8F7F4
surface
#EFEEE7
border
#CAC9C3
text
#0A0A02
muted
#7C7C78

Preview Lab

Preview with #4A520C

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

Preview Lab → · Contrast checker → · Palette generator →

#4A520C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva