#4E5125#4E5125

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

Color values

HEX#4E5125
RGBrgb(78, 81, 37)
HSLhsl(64, 37%, 23%)
HSVhsv(64, 54%, 32%)
CMYKcmyk(3.7%, 0%, 54.3%, 68.2%)
CIE-LABlab(33.22, -8.54, 25.23)
CIE-LCHlch(33.22, 26.63, 108.69°)
OKLaboklab(42.13% -0.0245 0.0597)
OKLCHoklch(42.13% 0.065 112.3)
XYZxyz(6.4184, 7.6382, 2.8861)
Luminance0.0764 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5125 #282551
analogous
#513E25 #4E5125 #385125
triadic
#4E5125 #254E51 #51254E
tetradic
#4E5125 #25513E #282551 #512538
square
#4E5125 #25513E #282551 #512538
split-complementary
#4E5125 #253851 #3E2551
monochromatic
#14150A #262712 #4E5125 #767B38 #9FA54B

Accessibility & contrast

On white

8.31
#4E5125 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E5125
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5125#FFFFFF#000000##FFFFFF
##4E51251.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e5125;
/* rgb */ color: rgb(78, 81, 37);
/* oklch */ color: oklch(42.1% 0.065 112.3);
Tailwind
colors: {
  custom: {
    50: '#818161',
    500: '#4e5125',
    950: '#000000',
  },
}
SCSS
$custom: #4e5125;
$custom-light: #818161;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5125",
  "rgb": {
    "r": 78,
    "g": 81,
    "b": 37
  },
  "hsl": {
    "h": 64.091,
    "s": 37.288,
    "l": 23.137
  },
  "oklch": {
    "l": 0.42132,
    "c": 0.06456,
    "h": 112.3
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#4E5125
secondary
#514E84
accent
#5BCD62
background
#F7F7F5
surface
#EEEEE9
border
#C9C9C5
text
#0A0A05
muted
#7C7C79

Preview Lab

Preview with #4E5125

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

Preview Lab → · Contrast checker → · Palette generator →

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