#4A540D#4A540D

#4A540D is a dark, moderate yellow. Relative luminance 0.078; OKLCH L 42.3% C 0.091 H 117.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#4A540D
RGBrgb(74, 84, 13)
HSLhsl(68, 73%, 19%)
HSVhsv(68, 85%, 33%)
CMYKcmyk(11.9%, 0%, 84.5%, 67.1%)
CIE-LABlab(33.62, -14.04, 36.85)
CIE-LCHlch(33.62, 39.43, 110.86°)
OKLaboklab(42.29% -0.0424 0.0807)
OKLCHoklch(42.29% 0.091 117.7)
XYZxyz(6.0672, 7.8256, 1.5716)
Luminance0.0783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A540D #170D54
analogous
#543B0D #4A540D #27540D
triadic
#4A540D #0D4A54 #540D4A
tetradic
#4A540D #0D543B #170D54 #540D27
square
#4A540D #0D543B #170D54 #540D27
split-complementary
#4A540D #0D2754 #3B0D54
monochromatic
#171A04 #1B1F05 #4A540D #798915 #A7BE1D

Accessibility & contrast

On white

8.19
#4A540D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4A540D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A540D
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A540D#FFFFFF#000000##FFFFFF
##4A540D1.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F00
Deuteranopia (green-blind)
#594F14
Tritanopia (blue-blind)
#4F4F47
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4a540d;
/* rgb */ color: rgb(74, 84, 13);
/* oklch */ color: oklch(42.3% 0.091 117.7);
Tailwind
colors: {
  custom: {
    50: '#7f8453',
    500: '#4a540d',
    950: '#000000',
  },
}
SCSS
$custom: #4a540d;
$custom-light: #7f8453;
$custom-dark: #000000;
JSON
{
  "hex": "#4a540d",
  "rgb": {
    "r": 74,
    "g": 84,
    "b": 13
  },
  "hsl": {
    "h": 68.451,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.42294,
    "c": 0.09112,
    "h": 117.7
  },
  "luminance": 0.07826
}

Semantic roles & 50–950 ramp

primary
#4A540D
secondary
#3C2E8F
accent
#38F052
background
#F7F8F4
surface
#EEEFE7
border
#C9CAC3
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4A540D

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

Preview Lab → · Contrast checker → · Palette generator →

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