#4F5017#4F5017

#4F5017 is a dark, moderate yellow. Relative luminance 0.075; OKLCH L 41.8% C 0.077 H 110.3°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#4F5017
RGBrgb(79, 80, 23)
HSLhsl(61, 55%, 20%)
HSVhsv(61, 71%, 31%)
CMYKcmyk(1.2%, 0%, 71.2%, 68.6%)
CIE-LABlab(32.84, -8.71, 32.13)
CIE-LCHlch(32.84, 33.29, 105.16°)
OKLaboklab(41.8% -0.0268 0.0725)
OKLCHoklch(41.8% 0.077 110.3)
XYZxyz(6.2480, 7.4616, 1.9216)
Luminance0.0746 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F5017 #181750
analogous
#503517 #4F5017 #325017
triadic
#4F5017 #174F50 #50174F
tetradic
#4F5017 #175035 #181750 #501732
square
#4F5017 #175035 #181750 #501732
split-complementary
#4F5017 #173250 #351750
monochromatic
#171807 #202009 #4F5017 #7E8025 #ADAF32

Accessibility & contrast

On white

8.43
#4F5017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F5017
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F5017#FFFFFF#000000##FFFFFF
##4F50171.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f5017;
/* rgb */ color: rgb(79, 80, 23);
/* oklch */ color: oklch(41.8% 0.077 110.3);
Tailwind
colors: {
  custom: {
    50: '#828058',
    500: '#4f5017',
    950: '#000000',
  },
}
SCSS
$custom: #4f5017;
$custom-light: #828058;
$custom-dark: #000000;
JSON
{
  "hex": "#4f5017",
  "rgb": {
    "r": 79,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 61.053,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.418,
    "c": 0.07726,
    "h": 110.3
  },
  "luminance": 0.07461
}

Semantic roles & 50–950 ramp

primary
#4F5017
secondary
#3D3C87
accent
#49DF4C
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4F5017

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

Preview Lab → · Contrast checker → · Palette generator →

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