#4D5F12#4D5F12

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

Color values

HEX#4D5F12
RGBrgb(77, 95, 18)
HSLhsl(74, 68%, 22%)
HSVhsv(74, 81%, 37%)
CMYKcmyk(18.9%, 0%, 81.1%, 62.7%)
CIE-LABlab(37.49, -18.40, 38.74)
CIE-LCHlch(37.49, 42.89, 115.40°)
OKLaboklab(45.49% -0.0541 0.0855)
OKLCHoklch(45.49% 0.101 122.3)
XYZxyz(7.2621, 9.8058, 2.0823)
Luminance0.0981 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D5F12 #24125F
analogous
#5F4B12 #4D5F12 #275F12
triadic
#4D5F12 #124D5F #5F124D
tetradic
#4D5F12 #125F4B #24125F #5F1227
square
#4D5F12 #125F4B #24125F #5F1227
split-complementary
#4D5F12 #12275F #4B125F
monochromatic
#151A05 #232C08 #4D5F12 #77921C #A0C625

Accessibility & contrast

On white

7.09
#4D5F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4D5F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D5F12
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D5F12#FFFFFF#000000##FFFFFF
##4D5F121.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d5f12;
/* rgb */ color: rgb(77, 95, 18);
/* oklch */ color: oklch(45.5% 0.101 122.3);
Tailwind
colors: {
  custom: {
    50: '#818c57',
    500: '#4d5f12',
    950: '#000000',
  },
}
SCSS
$custom: #4d5f12;
$custom-light: #818c57;
$custom-dark: #000000;
JSON
{
  "hex": "#4d5f12",
  "rgb": {
    "r": 77,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 74.026,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.45487,
    "c": 0.1012,
    "h": 122.3
  },
  "luminance": 0.09806
}

Semantic roles & 50–950 ramp

primary
#4D5F12
secondary
#4C3697
accent
#3DEB66
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #4D5F12

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

Preview Lab → · Contrast checker → · Palette generator →

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