#4A520B#4A520B

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

Color values

HEX#4A520B
RGBrgb(74, 82, 11)
HSLhsl(67, 76%, 18%)
HSVhsv(67, 87%, 32%)
CMYKcmyk(9.8%, 0%, 86.6%, 67.8%)
CIE-LABlab(32.95, -13.00, 36.93)
CIE-LCHlch(32.95, 39.15, 109.40°)
OKLaboklab(41.76% -0.0397 0.0804)
OKLCHoklch(41.76% 0.09 116.3)
XYZxyz(5.9019, 7.5147, 1.4561)
Luminance0.0751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A520B #130B52
analogous
#52360B #4A520B #26520B
triadic
#4A520B #0B4A52 #520B4A
tetradic
#4A520B #0B5236 #130B52 #520B26
square
#4A520B #0B5236 #130B52 #520B26
split-complementary
#4A520B #0B2652 #360B52
monochromatic
#181B04 #191C04 #4A520B #7B8812 #ABBE19

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A520B#FFFFFF#000000##FFFFFF
##4A520B1.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)
#584E12
Tritanopia (blue-blind)
#4F4D45
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4a520b;
/* rgb */ color: rgb(74, 82, 11);
/* oklch */ color: oklch(41.8% 0.090 116.3);
Tailwind
colors: {
  custom: {
    50: '#7f8252',
    500: '#4a520b',
    950: '#000000',
  },
}
SCSS
$custom: #4a520b;
$custom-light: #7f8252;
$custom-dark: #000000;
JSON
{
  "hex": "#4a520b",
  "rgb": {
    "r": 74,
    "g": 82,
    "b": 11
  },
  "hsl": {
    "h": 66.761,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.41755,
    "c": 0.08968,
    "h": 116.3
  },
  "luminance": 0.07515
}

Semantic roles & 50–950 ramp

primary
#4A520B
secondary
#362B8E
accent
#35F34A
background
#F8F7F4
surface
#EFEEE7
border
#CAC9C3
text
#0A0A02
muted
#7C7C78

Preview Lab

Preview with #4A520B

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

Preview Lab → · Contrast checker → · Palette generator →

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