#4A540E#4A540E

#4A540E 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#4A540E
RGBrgb(74, 84, 14)
HSLhsl(69, 71%, 19%)
HSVhsv(69, 83%, 33%)
CMYKcmyk(11.9%, 0%, 83.3%, 67.1%)
CIE-LABlab(33.62, -13.99, 36.50)
CIE-LCHlch(33.62, 39.09, 110.97°)
OKLaboklab(42.3% -0.0421 0.0801)
OKLCHoklch(42.3% 0.091 117.7)
XYZxyz(6.0738, 7.8283, 1.6064)
Luminance0.0783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A540E #180E54
analogous
#543B0E #4A540E #27540E
triadic
#4A540E #0E4A54 #540E4A
tetradic
#4A540E #0E543B #180E54 #540E27
square
#4A540E #0E543B #180E54 #540E27
split-complementary
#4A540E #0E2754 #3B0E54
monochromatic
#171A04 #1C2005 #4A540E #788817 #A6BD1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A540E#FFFFFF#000000##FFFFFF
##4A540E1.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)
#594F15
Tritanopia (blue-blind)
#4F4F47
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4a540e;
/* rgb */ color: rgb(74, 84, 14);
/* oklch */ color: oklch(42.3% 0.091 117.7);
Tailwind
colors: {
  custom: {
    50: '#7f8453',
    500: '#4a540e',
    950: '#000000',
  },
}
SCSS
$custom: #4a540e;
$custom-light: #7f8453;
$custom-dark: #000000;
JSON
{
  "hex": "#4a540e",
  "rgb": {
    "r": 74,
    "g": 84,
    "b": 14
  },
  "hsl": {
    "h": 68.571,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.423,
    "c": 0.09054,
    "h": 117.7
  },
  "luminance": 0.07828
}

Semantic roles & 50–950 ramp

primary
#4A540E
secondary
#3D2F8E
accent
#3AEE53
background
#F7F8F4
surface
#EEEFE8
border
#C9CAC4
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4A540E

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

Preview Lab → · Contrast checker → · Palette generator →

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