#4F5812#4F5812

#4F5812 is a dark, moderate yellow. Relative luminance 0.087; OKLCH L 43.8% C 0.091 H 116.8°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#4F5812
RGBrgb(79, 88, 18)
HSLhsl(68, 66%, 21%)
HSVhsv(68, 80%, 35%)
CMYKcmyk(10.2%, 0%, 79.5%, 65.5%)
CIE-LABlab(35.37, -13.62, 36.79)
CIE-LCHlch(35.37, 39.24, 110.32°)
OKLaboklab(43.82% -0.0411 0.0814)
OKLCHoklch(43.82% 0.091 116.8)
XYZxyz(6.8235, 8.6855, 1.8892)
Luminance0.0868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F5812 #1B1258
analogous
#583E12 #4F5812 #2C5812
triadic
#4F5812 #124F58 #58124F
tetradic
#4F5812 #12583E #1B1258 #58122C
square
#4F5812 #12583E #1B1258 #58122C
split-complementary
#4F5812 #122C58 #3E1258
monochromatic
#171905 #212508 #4F5812 #7D8B1C #AABE27

Accessibility & contrast

On white

7.67
#4F5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4F5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F5812
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F5812#FFFFFF#000000##FFFFFF
##4F58121.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5304
Deuteranopia (green-blind)
#5E5418
Tritanopia (blue-blind)
#54534B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4f5812;
/* rgb */ color: rgb(79, 88, 18);
/* oklch */ color: oklch(43.8% 0.091 116.8);
Tailwind
colors: {
  custom: {
    50: '#838756',
    500: '#4f5812',
    950: '#000000',
  },
}
SCSS
$custom: #4f5812;
$custom-light: #838756;
$custom-dark: #000000;
JSON
{
  "hex": "#4f5812",
  "rgb": {
    "r": 79,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 67.714,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.4382,
    "c": 0.09112,
    "h": 116.8
  },
  "luminance": 0.08685
}

Semantic roles & 50–950 ramp

primary
#4F5812
secondary
#413591
accent
#3FE955
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #4F5812

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

Preview Lab → · Contrast checker → · Palette generator →

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