#4A5012#4A5012

#4A5012 is a dark, moderate yellow. Relative luminance 0.072; OKLCH L 41.3% C 0.083 H 114.9°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#4A5012
RGBrgb(74, 80, 18)
HSLhsl(66, 63%, 19%)
HSVhsv(66, 78%, 31%)
CMYKcmyk(7.5%, 0%, 77.5%, 68.6%)
CIE-LABlab(32.34, -11.49, 33.72)
CIE-LCHlch(32.34, 35.62, 108.82°)
OKLaboklab(41.28% -0.0348 0.075)
OKLCHoklch(41.28% 0.083 114.9)
XYZxyz(5.8020, 7.2369, 1.6634)
Luminance0.0724 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A5012 #181250
analogous
#503712 #4A5012 #2B5012
triadic
#4A5012 #124A50 #50124A
tetradic
#4A5012 #125037 #181250 #50122B
square
#4A5012 #125037 #181250 #50122B
split-complementary
#4A5012 #122B50 #371250
monochromatic
#171906 #1C1E07 #4A5012 #78821D #A6B428

Accessibility & contrast

On white

8.58
#4A5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4A5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A5012
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A5012#FFFFFF#000000##FFFFFF
##4A50121.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C07
Deuteranopia (green-blind)
#564D17
Tritanopia (blue-blind)
#4F4B44
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4a5012;
/* rgb */ color: rgb(74, 80, 18);
/* oklch */ color: oklch(41.3% 0.083 114.9);
Tailwind
colors: {
  custom: {
    50: '#7f8155',
    500: '#4a5012',
    950: '#000000',
  },
}
SCSS
$custom: #4a5012;
$custom-light: #7f8155;
$custom-dark: #000000;
JSON
{
  "hex": "#4a5012",
  "rgb": {
    "r": 74,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 65.806,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.41278,
    "c": 0.08273,
    "h": 114.9
  },
  "luminance": 0.07237
}

Semantic roles & 50–950 ramp

primary
#4A5012
secondary
#3D3589
accent
#41E651
background
#F7F7F5
surface
#EEEEE9
border
#C9C9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4A5012

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

Preview Lab → · Contrast checker → · Palette generator →

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