#4A510C#4A510C

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

Color values

HEX#4A510C
RGBrgb(74, 81, 12)
HSLhsl(66, 74%, 18%)
HSVhsv(66, 85%, 32%)
CMYKcmyk(8.6%, 0%, 85.2%, 68.2%)
CIE-LABlab(32.63, -12.39, 36.30)
CIE-LCHlch(32.63, 38.36, 108.84°)
OKLaboklab(41.5% -0.0379 0.0793)
OKLCHoklch(41.5% 0.088 115.5)
XYZxyz(5.8330, 7.3673, 1.4625)
Luminance0.0737 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A510C #130C51
analogous
#51350C #4A510C #27510C
triadic
#4A510C #0C4A51 #510C4A
tetradic
#4A510C #0C5135 #130C51 #510C27
square
#4A510C #0C5135 #130C51 #510C27
split-complementary
#4A510C #0C2751 #350C51
monochromatic
#181B04 #191C04 #4A510C #7B8614 #ABBC1C

Accessibility & contrast

On white

8.49
#4A510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A510C
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A510C#FFFFFF#000000##FFFFFF
##4A510C1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C00
Deuteranopia (green-blind)
#574D13
Tritanopia (blue-blind)
#4F4C44
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4a510c;
/* rgb */ color: rgb(74, 81, 12);
/* oklch */ color: oklch(41.5% 0.088 115.5);
Tailwind
colors: {
  custom: {
    50: '#7f8152',
    500: '#4a510c',
    950: '#000000',
  },
}
SCSS
$custom: #4a510c;
$custom-light: #7f8152;
$custom-dark: #000000;
JSON
{
  "hex": "#4a510c",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 66.087,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.41498,
    "c": 0.08788,
    "h": 115.5
  },
  "luminance": 0.07367
}

Semantic roles & 50–950 ramp

primary
#4A510C
secondary
#362C8C
accent
#37F14A
background
#F7F7F4
surface
#EEEEE7
border
#C9C9C3
text
#0A0A02
muted
#7C7C78

Preview Lab

Preview with #4A510C

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

Preview Lab → · Contrast checker → · Palette generator →

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