#4E5228#4E5228

#4E5228 is a dark, moderate yellow. Relative luminance 0.078; OKLCH L 42.4% C 0.062 H 113.5°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#4E5228
RGBrgb(78, 82, 40)
HSLhsl(66, 34%, 24%)
HSVhsv(66, 51%, 32%)
CMYKcmyk(4.9%, 0%, 51.2%, 67.8%)
CIE-LABlab(33.58, -8.79, 23.96)
CIE-LCHlch(33.58, 25.52, 110.15°)
OKLaboklab(42.43% -0.0249 0.0572)
OKLCHoklch(42.43% 0.062 113.5)
XYZxyz(6.5423, 7.8076, 3.1694)
Luminance0.0781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5228 #2C2852
analogous
#524128 #4E5228 #395228
triadic
#4E5228 #284E52 #52284E
tetradic
#4E5228 #285241 #2C2852 #522839
square
#4E5228 #285241 #2C2852 #522839
split-complementary
#4E5228 #283952 #412852
monochromatic
#14150A #272914 #4E5228 #757B3C #9CA450

Accessibility & contrast

On white

8.20
#4E5228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4E5228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E5228
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5228#FFFFFF#000000##FFFFFF
##4E52281.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574E24
Deuteranopia (green-blind)
#574F2A
Tritanopia (blue-blind)
#524E48
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e5228;
/* rgb */ color: rgb(78, 82, 40);
/* oklch */ color: oklch(42.4% 0.062 113.5);
Tailwind
colors: {
  custom: {
    50: '#808263',
    500: '#4e5228',
    950: '#000000',
  },
}
SCSS
$custom: #4e5228;
$custom-light: #808263;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5228",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 40
  },
  "hsl": {
    "h": 65.714,
    "s": 34.426,
    "l": 23.922
  },
  "oklch": {
    "l": 0.42434,
    "c": 0.06241,
    "h": 113.5
  },
  "luminance": 0.07807
}

Semantic roles & 50–950 ramp

primary
#4E5228
secondary
#565185
accent
#5DCB68
background
#F7F7F5
surface
#EEEEEA
border
#C9C9C6
text
#0A0A05
muted
#7C7C79

Preview Lab

Preview with #4E5228

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

Preview Lab → · Contrast checker → · Palette generator →

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