#4F5012#4F5012

#4F5012 is a dark, moderate yellow. Relative luminance 0.074; OKLCH L 41.8% C 0.081 H 110.4°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#4F5012
RGBrgb(79, 80, 18)
HSLhsl(61, 63%, 19%)
HSVhsv(61, 78%, 31%)
CMYKcmyk(1.2%, 0%, 77.5%, 68.6%)
CIE-LABlab(32.80, -9.03, 34.32)
CIE-LCHlch(32.80, 35.49, 104.73°)
OKLaboklab(41.76% -0.0283 0.0761)
OKLCHoklch(41.76% 0.081 110.4)
XYZxyz(6.2025, 7.4434, 1.6821)
Luminance0.0744 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F5012 #131250
analogous
#503212 #4F5012 #305012
triadic
#4F5012 #124F50 #50124F
tetradic
#4F5012 #125032 #131250 #501230
square
#4F5012 #125032 #131250 #501230
split-complementary
#4F5012 #123050 #321250
monochromatic
#191906 #1E1E07 #4F5012 #80821D #B2B428

Accessibility & contrast

On white

8.44
#4F5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4F5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F5012
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F5012#FFFFFF#000000##FFFFFF
##4F50121.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#574E17
Tritanopia (blue-blind)
#554B44
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4f5012;
/* rgb */ color: rgb(79, 80, 18);
/* oklch */ color: oklch(41.8% 0.081 110.4);
Tailwind
colors: {
  custom: {
    50: '#838055',
    500: '#4f5012',
    950: '#000000',
  },
}
SCSS
$custom: #4f5012;
$custom-light: #838055;
$custom-dark: #000000;
JSON
{
  "hex": "#4f5012",
  "rgb": {
    "r": 79,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 60.968,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.41755,
    "c": 0.08121,
    "h": 110.4
  },
  "luminance": 0.07443
}

Semantic roles & 50–950 ramp

primary
#4F5012
secondary
#363589
accent
#41E644
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4F5012

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

Preview Lab → · Contrast checker → · Palette generator →

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