#4A5812#4A5812

#4A5812 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.4% C 0.093 H 120.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#4A5812
RGBrgb(74, 88, 18)
HSLhsl(72, 66%, 21%)
HSVhsv(72, 80%, 35%)
CMYKcmyk(15.9%, 0%, 79.5%, 65.5%)
CIE-LABlab(34.96, -16.00, 36.26)
CIE-LCHlch(34.96, 39.63, 113.81°)
OKLaboklab(43.39% -0.0473 0.0804)
OKLCHoklch(43.39% 0.093 120.5)
XYZxyz(6.4231, 8.4790, 1.8704)
Luminance0.0848 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A5812 #201258
analogous
#584312 #4A5812 #275812
triadic
#4A5812 #124A58 #58124A
tetradic
#4A5812 #125843 #201258 #581227
square
#4A5812 #125843 #201258 #581227
split-complementary
#4A5812 #122758 #431258
monochromatic
#151905 #1F2508 #4A5812 #758B1C #9FBE27

Accessibility & contrast

On white

7.79
#4A5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4A5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A5812
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A5812#FFFFFF#000000##FFFFFF
##4A58121.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5205
Deuteranopia (green-blind)
#5C5218
Tritanopia (blue-blind)
#4F534B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4a5812;
/* rgb */ color: rgb(74, 88, 18);
/* oklch */ color: oklch(43.4% 0.093 120.5);
Tailwind
colors: {
  custom: {
    50: '#7f8756',
    500: '#4a5812',
    950: '#000000',
  },
}
SCSS
$custom: #4a5812;
$custom-light: #7f8756;
$custom-dark: #000000;
JSON
{
  "hex": "#4a5812",
  "rgb": {
    "r": 74,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 72,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.43386,
    "c": 0.09328,
    "h": 120.5
  },
  "luminance": 0.08479
}

Semantic roles & 50–950 ramp

primary
#4A5812
secondary
#473591
accent
#3FE961
background
#F7F8F5
surface
#EEEFE9
border
#C9CAC5
text
#0A0B03
muted
#7C7C78

Preview Lab

Preview with #4A5812

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

Preview Lab → · Contrast checker → · Palette generator →

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