#4A5112#4A5112

#4A5112 is a dark, moderate yellow. Relative luminance 0.074; OKLCH L 41.5% C 0.084 H 115.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#4A5112
RGBrgb(74, 81, 18)
HSLhsl(67, 64%, 19%)
HSVhsv(67, 78%, 32%)
CMYKcmyk(8.6%, 0%, 77.8%, 68.2%)
CIE-LABlab(32.67, -12.07, 34.04)
CIE-LCHlch(32.67, 36.11, 109.52°)
OKLaboklab(41.54% -0.0364 0.0757)
OKLCHoklch(41.54% 0.084 115.7)
XYZxyz(5.8758, 7.3845, 1.6880)
Luminance0.0738 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A5112 #191251
analogous
#513912 #4A5112 #2B5112
triadic
#4A5112 #124A51 #51124A
tetradic
#4A5112 #125139 #191251 #51122B
square
#4A5112 #125139 #191251 #51122B
split-complementary
#4A5112 #122B51 #391251
monochromatic
#171906 #1C1F07 #4A5112 #78831D #A5B528

Accessibility & contrast

On white

8.48
#4A5112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4A5112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A5112
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A5112#FFFFFF#000000##FFFFFF
##4A51121.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#574D17
Tritanopia (blue-blind)
#4F4C45
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4a5112;
/* rgb */ color: rgb(74, 81, 18);
/* oklch */ color: oklch(41.5% 0.084 115.7);
Tailwind
colors: {
  custom: {
    50: '#7f8155',
    500: '#4a5112',
    950: '#000000',
  },
}
SCSS
$custom: #4a5112;
$custom-light: #7f8155;
$custom-dark: #000000;
JSON
{
  "hex": "#4a5112",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 18
  },
  "hsl": {
    "h": 66.667,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.4154,
    "c": 0.08403,
    "h": 115.7
  },
  "luminance": 0.07384
}

Semantic roles & 50–950 ramp

primary
#4A5112
secondary
#3E358A
accent
#41E754
background
#F7F7F5
surface
#EEEEE9
border
#C9C9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4A5112

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

Preview Lab → · Contrast checker → · Palette generator →

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