#4A4812#4A4812

#4A4812 is a dark, moderate yellow. Relative luminance 0.061; OKLCH L 39.2% C 0.073 H 107.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4A4812
RGBrgb(74, 72, 18)
HSLhsl(58, 61%, 18%)
HSVhsv(58, 76%, 29%)
CMYKcmyk(0%, 2.7%, 75.7%, 71%)
CIE-LABlab(29.75, -6.77, 31.15)
CIE-LCHlch(29.75, 31.88, 102.25°)
OKLaboklab(39.21% -0.0216 0.0696)
OKLCHoklch(39.21% 0.073 107.2)
XYZxyz(5.2508, 6.1344, 1.4796)
Luminance0.0613 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A4812 #12144A
analogous
#4A2C12 #4A4812 #304A12
triadic
#4A4812 #124A48 #48124A
tetradic
#4A4812 #124A2C #12144A #4A1230
square
#4A4812 #124A2C #12144A #4A1230
split-complementary
#4A4812 #12304A #2C124A
monochromatic
#191806 #191806 #4A4812 #7B781E #ACA82A

Accessibility & contrast

On white

9.43
#4A4812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4A4812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A4812
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A4812#FFFFFF#000000##FFFFFF
##4A48121.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F450A
Deuteranopia (green-blind)
#504716
Tritanopia (blue-blind)
#50433D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a4812;
/* rgb */ color: rgb(74, 72, 18);
/* oklch */ color: oklch(39.2% 0.073 107.2);
Tailwind
colors: {
  custom: {
    50: '#7f7a54',
    500: '#4a4812',
    950: '#000000',
  },
}
SCSS
$custom: #4a4812;
$custom-light: #7f7a54;
$custom-dark: #000000;
JSON
{
  "hex": "#4a4812",
  "rgb": {
    "r": 74,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 57.857,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.39206,
    "c": 0.0729,
    "h": 107.2
  },
  "luminance": 0.06134
}

Semantic roles & 50–950 ramp

primary
#4A4812
secondary
#353883
accent
#4AE444
background
#F7F7F4
surface
#EEEDE7
border
#C9C8C3
text
#0A0903
muted
#7C7B78

Preview Lab

Preview with #4A4812

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

Preview Lab → · Contrast checker → · Palette generator →

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