#4E5F0C#4E5F0C

#4E5F0C is a mid, moderate yellow-green. Relative luminance 0.098; OKLCH L 45.5% C 0.104 H 121.4°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#4E5F0C
RGBrgb(78, 95, 12)
HSLhsl(72, 78%, 21%)
HSVhsv(72, 87%, 37%)
CMYKcmyk(17.9%, 0%, 87.4%, 62.7%)
CIE-LABlab(37.54, -18.22, 40.79)
CIE-LCHlch(37.54, 44.67, 114.07°)
OKLaboklab(45.53% -0.0541 0.0887)
OKLCHoklch(45.53% 0.104 121.4)
XYZxyz(7.3006, 9.8307, 1.8607)
Luminance0.0983 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E5F0C #1D0C5F
analogous
#5F460C #4E5F0C #245F0C
triadic
#4E5F0C #0C4E5F #5F0C4E
tetradic
#4E5F0C #0C5F46 #1D0C5F #5F0C24
square
#4E5F0C #0C5F46 #1D0C5F #5F0C24
split-complementary
#4E5F0C #0C245F #460C5F
monochromatic
#161B03 #212905 #4E5F0C #7B9513 #A7CC1A

Accessibility & contrast

On white

7.08
#4E5F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4E5F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E5F0C
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E5F0C#FFFFFF#000000##FFFFFF
##4E5F0C1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655900
Deuteranopia (green-blind)
#635815
Tritanopia (blue-blind)
#535A50
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4e5f0c;
/* rgb */ color: rgb(78, 95, 12);
/* oklch */ color: oklch(45.5% 0.104 121.4);
Tailwind
colors: {
  custom: {
    50: '#838c54',
    500: '#4e5f0c',
    950: '#000000',
  },
}
SCSS
$custom: #4e5f0c;
$custom-light: #838c54;
$custom-dark: #000000;
JSON
{
  "hex": "#4e5f0c",
  "rgb": {
    "r": 78,
    "g": 95,
    "b": 12
  },
  "hsl": {
    "h": 72.289,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.45533,
    "c": 0.10393,
    "h": 121.4
  },
  "luminance": 0.09831
}

Semantic roles & 50–950 ramp

primary
#4E5F0C
secondary
#442D99
accent
#34F45B
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #4E5F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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