#4A510F#4A510F

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

Color values

HEX#4A510F
RGBrgb(74, 81, 15)
HSLhsl(66, 69%, 19%)
HSVhsv(66, 81%, 32%)
CMYKcmyk(8.6%, 0%, 81.5%, 68.2%)
CIE-LABlab(32.65, -12.24, 35.22)
CIE-LCHlch(32.65, 37.29, 109.16°)
OKLaboklab(41.52% -0.0372 0.0776)
OKLCHoklch(41.52% 0.086 115.6)
XYZxyz(5.8529, 7.3753, 1.5671)
Luminance0.0737 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A510F #160F51
analogous
#51370F #4A510F #29510F
triadic
#4A510F #0F4A51 #510F4A
tetradic
#4A510F #0F5137 #160F51 #510F29
square
#4A510F #0F5137 #160F51 #510F29
split-complementary
#4A510F #0F2951 #370F51
monochromatic
#181A05 #1B1D05 #4A510F #798519 #A8B822

Accessibility & contrast

On white

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

On black

2.47
#4A510F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4A510F#FFFFFF#000000##FFFFFF
##4A510F1.008.482.478.48
#FFFFFF8.481.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a510f;
/* rgb */ color: rgb(74, 81, 15);
/* oklch */ color: oklch(41.5% 0.086 115.6);
Tailwind
colors: {
  custom: {
    50: '#7f8153',
    500: '#4a510f',
    950: '#000000',
  },
}
SCSS
$custom: #4a510f;
$custom-light: #7f8153;
$custom-dark: #000000;
JSON
{
  "hex": "#4a510f",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 66.364,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.41518,
    "c": 0.08608,
    "h": 115.6
  },
  "luminance": 0.07375
}

Semantic roles & 50–950 ramp

primary
#4A510F
secondary
#3A318B
accent
#3CEC4F
background
#F7F7F4
surface
#EEEEE8
border
#C9C9C4
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4A510F

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

Preview Lab → · Contrast checker → · Palette generator →

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