#4C5F12#4C5F12

#4C5F12 is a mid, moderate yellow-green. Relative luminance 0.098; OKLCH L 45.4% C 0.102 H 122.9°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#4C5F12
RGBrgb(76, 95, 18)
HSLhsl(75, 68%, 22%)
HSVhsv(75, 81%, 37%)
CMYKcmyk(20%, 0%, 81.1%, 62.7%)
CIE-LABlab(37.42, -18.86, 38.65)
CIE-LCHlch(37.42, 43.00, 116.01°)
OKLaboklab(45.41% -0.0553 0.0854)
OKLCHoklch(45.41% 0.102 122.9)
XYZxyz(7.1820, 9.7646, 2.0785)
Luminance0.0977 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C5F12 #25125F
analogous
#5F4C12 #4C5F12 #265F12
triadic
#4C5F12 #124C5F #5F124C
tetradic
#4C5F12 #125F4C #25125F #5F1226
square
#4C5F12 #125F4C #25125F #5F1226
split-complementary
#4C5F12 #12265F #4C125F
monochromatic
#151A05 #232C08 #4C5F12 #75921C #9EC625

Accessibility & contrast

On white

7.11
#4C5F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4C5F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C5F12
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C5F12#FFFFFF#000000##FFFFFF
##4C5F121.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655902
Deuteranopia (green-blind)
#635819
Tritanopia (blue-blind)
#505A51
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4c5f12;
/* rgb */ color: rgb(76, 95, 18);
/* oklch */ color: oklch(45.4% 0.102 122.9);
Tailwind
colors: {
  custom: {
    50: '#818c57',
    500: '#4c5f12',
    950: '#000000',
  },
}
SCSS
$custom: #4c5f12;
$custom-light: #818c57;
$custom-dark: #000000;
JSON
{
  "hex": "#4c5f12",
  "rgb": {
    "r": 76,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 74.805,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.45407,
    "c": 0.10169,
    "h": 122.9
  },
  "luminance": 0.09765
}

Semantic roles & 50–950 ramp

primary
#4C5F12
secondary
#4E3697
accent
#3DEB68
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #4C5F12

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

Preview Lab → · Contrast checker → · Palette generator →

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