#4A5215#4A5215

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

Color values

HEX#4A5215
RGBrgb(74, 82, 21)
HSLhsl(68, 59%, 20%)
HSVhsv(68, 74%, 32%)
CMYKcmyk(9.8%, 0%, 74.4%, 67.8%)
CIE-LABlab(33.02, -12.45, 33.09)
CIE-LCHlch(33.02, 35.35, 110.62°)
OKLaboklab(41.83% -0.0372 0.0743)
OKLCHoklch(41.83% 0.083 116.6)
XYZxyz(5.9768, 7.5447, 1.8507)
Luminance0.0755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A5215 #1D1552
analogous
#523B15 #4A5215 #2B5215
triadic
#4A5215 #154A52 #52154A
tetradic
#4A5215 #15523B #1D1552 #52152B
square
#4A5215 #15523B #1D1552 #52152B
split-complementary
#4A5215 #152B52 #3B1552
monochromatic
#161806 #1E2109 #4A5215 #768321 #A2B32E

Accessibility & contrast

On white

8.37
#4A5215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A5215
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A5215#FFFFFF#000000##FFFFFF
##4A52151.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D0C
Deuteranopia (green-blind)
#574E1A
Tritanopia (blue-blind)
#4F4D46
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4a5215;
/* rgb */ color: rgb(74, 82, 21);
/* oklch */ color: oklch(41.8% 0.083 116.6);
Tailwind
colors: {
  custom: {
    50: '#7f8257',
    500: '#4a5215',
    950: '#000000',
  },
}
SCSS
$custom: #4a5215;
$custom-light: #7f8257;
$custom-dark: #000000;
JSON
{
  "hex": "#4a5215",
  "rgb": {
    "r": 74,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 67.869,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.41828,
    "c": 0.08306,
    "h": 116.6
  },
  "luminance": 0.07545
}

Semantic roles & 50–950 ramp

primary
#4A5215
secondary
#44398A
accent
#45E25A
background
#F7F7F5
surface
#EEEEE9
border
#C9C9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4A5215

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

Preview Lab → · Contrast checker → · Palette generator →

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