#4A520F#4A520F

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

Color values

HEX#4A520F
RGBrgb(74, 82, 15)
HSLhsl(67, 69%, 19%)
HSVhsv(67, 82%, 32%)
CMYKcmyk(9.8%, 0%, 81.7%, 67.8%)
CIE-LABlab(32.97, -12.81, 35.53)
CIE-LCHlch(32.97, 37.77, 109.82°)
OKLaboklab(41.78% -0.0388 0.0783)
OKLCHoklch(41.78% 0.087 116.4)
XYZxyz(5.9277, 7.5250, 1.5920)
Luminance0.0752 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A520F #170F52
analogous
#52390F #4A520F #29520F
triadic
#4A520F #0F4A52 #520F4A
tetradic
#4A520F #0F5239 #170F52 #520F29
square
#4A520F #0F5239 #170F52 #520F29
split-complementary
#4A520F #0F2952 #390F52
monochromatic
#171A05 #1B1E06 #4A520F #798618 #A7B922

Accessibility & contrast

On white

8.38
#4A520F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4A520F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A520F
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A520F#FFFFFF#000000##FFFFFF
##4A520F1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D02
Deuteranopia (green-blind)
#584E15
Tritanopia (blue-blind)
#4F4D45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4a520f;
/* rgb */ color: rgb(74, 82, 15);
/* oklch */ color: oklch(41.8% 0.087 116.4);
Tailwind
colors: {
  custom: {
    50: '#7f8253',
    500: '#4a520f',
    950: '#000000',
  },
}
SCSS
$custom: #4a520f;
$custom-light: #7f8253;
$custom-dark: #000000;
JSON
{
  "hex": "#4a520f",
  "rgb": {
    "r": 74,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 67.164,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.4178,
    "c": 0.08735,
    "h": 116.4
  },
  "luminance": 0.07525
}

Semantic roles & 50–950 ramp

primary
#4A520F
secondary
#3C318C
accent
#3CEC51
background
#F7F7F4
surface
#EEEEE8
border
#C9C9C4
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4A520F

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

Preview Lab → · Contrast checker → · Palette generator →

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