#4E5126#4E5126

#4E5126 is a dark, moderate yellow. Relative luminance 0.076; OKLCH L 42.1% C 0.063 H 112.4°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#4E5126
RGBrgb(78, 81, 38)
HSLhsl(64, 36%, 23%)
HSVhsv(64, 53%, 32%)
CMYKcmyk(3.7%, 0%, 53.1%, 68.2%)
CIE-LABlab(33.23, -8.43, 24.68)
CIE-LCHlch(33.23, 26.08, 108.85°)
OKLaboklab(42.15% -0.0241 0.0586)
OKLCHoklch(42.15% 0.063 112.4)
XYZxyz(6.4343, 7.6446, 2.9700)
Luminance0.0765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5126 #292651
analogous
#513E26 #4E5126 #385126
triadic
#4E5126 #264E51 #51264E
tetradic
#4E5126 #26513E #292651 #512638
square
#4E5126 #26513E #292651 #512638
split-complementary
#4E5126 #263851 #3E2651
monochromatic
#14150A #262712 #4E5126 #767B3A #9EA44D

Accessibility & contrast

On white

8.30
#4E5126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4E5126 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E5126
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5126#FFFFFF#000000##FFFFFF
##4E51261.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574E22
Deuteranopia (green-blind)
#574F28
Tritanopia (blue-blind)
#534D47
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4e5126;
/* rgb */ color: rgb(78, 81, 38);
/* oklch */ color: oklch(42.1% 0.063 112.4);
Tailwind
colors: {
  custom: {
    50: '#818161',
    500: '#4e5126',
    950: '#000000',
  },
}
SCSS
$custom: #4e5126;
$custom-light: #818161;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5126",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 38
  },
  "hsl": {
    "h": 64.186,
    "s": 36.134,
    "l": 23.333
  },
  "oklch": {
    "l": 0.42148,
    "c": 0.06338,
    "h": 112.4
  },
  "luminance": 0.07645
}

Semantic roles & 50–950 ramp

primary
#4E5126
secondary
#524F84
accent
#5CCC63
background
#F7F7F5
surface
#EEEEEA
border
#C9C9C6
text
#0A0A05
muted
#7C7C79

Preview Lab

Preview with #4E5126

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

Preview Lab → · Contrast checker → · Palette generator →

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