#4A5A12#4A5A12

#4A5A12 is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.9% C 0.096 H 121.6°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#4A5A12
RGBrgb(74, 90, 18)
HSLhsl(73, 67%, 21%)
HSVhsv(73, 80%, 35%)
CMYKcmyk(17.8%, 0%, 80%, 64.7%)
CIE-LABlab(35.62, -17.09, 36.89)
CIE-LCHlch(35.62, 40.66, 114.86°)
OKLaboklab(43.92% -0.0503 0.0817)
OKLCHoklch(43.92% 0.096 121.6)
XYZxyz(6.5895, 8.8118, 1.9259)
Luminance0.0881 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A5A12 #22125A
analogous
#5A4612 #4A5A12 #265A12
triadic
#4A5A12 #124A5A #5A124A
tetradic
#4A5A12 #125A46 #22125A #5A1226
square
#4A5A12 #125A46 #22125A #5A1226
split-complementary
#4A5A12 #12265A #46125A
monochromatic
#151A05 #202708 #4A5A12 #748D1C #9EC026

Accessibility & contrast

On white

7.60
#4A5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4A5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A5A12
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A5A12#FFFFFF#000000##FFFFFF
##4A5A121.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605404
Deuteranopia (green-blind)
#5E5419
Tritanopia (blue-blind)
#4E554C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4a5a12;
/* rgb */ color: rgb(74, 90, 18);
/* oklch */ color: oklch(43.9% 0.096 121.6);
Tailwind
colors: {
  custom: {
    50: '#7f8856',
    500: '#4a5a12',
    950: '#000000',
  },
}
SCSS
$custom: #4a5a12;
$custom-light: #7f8856;
$custom-dark: #000000;
JSON
{
  "hex": "#4a5a12",
  "rgb": {
    "r": 74,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 73.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.43917,
    "c": 0.09596,
    "h": 121.6
  },
  "luminance": 0.08812
}

Semantic roles & 50–950 ramp

primary
#4A5A12
secondary
#4A3593
accent
#3EEA64
background
#F7F8F5
surface
#EEEFE9
border
#C9CAC5
text
#0A0B03
muted
#7C7C78

Preview Lab

Preview with #4A5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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