#4C5F0C#4C5F0C

#4C5F0C is a mid, moderate yellow-green. Relative luminance 0.097; OKLCH L 45.4% C 0.105 H 122.6°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#4C5F0C
RGBrgb(76, 95, 12)
HSLhsl(74, 78%, 21%)
HSVhsv(74, 87%, 37%)
CMYKcmyk(20%, 0%, 87.4%, 62.7%)
CIE-LABlab(37.39, -19.15, 40.60)
CIE-LCHlch(37.39, 44.89, 115.25°)
OKLaboklab(45.37% -0.0565 0.0884)
OKLCHoklch(45.37% 0.105 122.6)
XYZxyz(7.1392, 9.7474, 1.8531)
Luminance0.0975 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C5F0C #1F0C5F
analogous
#5F480C #4C5F0C #225F0C
triadic
#4C5F0C #0C4C5F #5F0C4C
tetradic
#4C5F0C #0C5F48 #1F0C5F #5F0C22
square
#4C5F0C #0C5F48 #1F0C5F #5F0C22
split-complementary
#4C5F0C #0C225F #480C5F
monochromatic
#161B03 #212905 #4C5F0C #779513 #A3CC1A

Accessibility & contrast

On white

7.12
#4C5F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C5F0C
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C5F0C#FFFFFF#000000##FFFFFF
##4C5F0C1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c5f0c;
/* rgb */ color: rgb(76, 95, 12);
/* oklch */ color: oklch(45.4% 0.105 122.6);
Tailwind
colors: {
  custom: {
    50: '#818c54',
    500: '#4c5f0c',
    950: '#000000',
  },
}
SCSS
$custom: #4c5f0c;
$custom-light: #818c54;
$custom-dark: #000000;
JSON
{
  "hex": "#4c5f0c",
  "rgb": {
    "r": 76,
    "g": 95,
    "b": 12
  },
  "hsl": {
    "h": 73.735,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.45372,
    "c": 0.10492,
    "h": 122.6
  },
  "luminance": 0.09747
}

Semantic roles & 50–950 ramp

primary
#4C5F0C
secondary
#462D99
accent
#34F460
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #4C5F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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