#4F5F0C#4F5F0C

#4F5F0C is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.6% C 0.103 H 120.8°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#4F5F0C
RGBrgb(79, 95, 12)
HSLhsl(72, 78%, 21%)
HSVhsv(72, 87%, 37%)
CMYKcmyk(16.8%, 0%, 87.4%, 62.7%)
CIE-LABlab(37.61, -17.75, 40.89)
CIE-LCHlch(37.61, 44.58, 113.47°)
OKLaboklab(45.62% -0.0529 0.0889)
OKLCHoklch(45.62% 0.103 120.8)
XYZxyz(7.3832, 9.8732, 1.8645)
Luminance0.0987 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F5F0C #1C0C5F
analogous
#5F450C #4F5F0C #255F0C
triadic
#4F5F0C #0C4F5F #5F0C4F
tetradic
#4F5F0C #0C5F45 #1C0C5F #5F0C25
square
#4F5F0C #0C5F45 #1C0C5F #5F0C25
split-complementary
#4F5F0C #0C255F #450C5F
monochromatic
#171B03 #222905 #4F5F0C #7C9513 #A9CC1A

Accessibility & contrast

On white

7.06
#4F5F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4F5F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F5F0C
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F5F0C#FFFFFF#000000##FFFFFF
##4F5F0C1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665900
Deuteranopia (green-blind)
#645915
Tritanopia (blue-blind)
#545950
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4f5f0c;
/* rgb */ color: rgb(79, 95, 12);
/* oklch */ color: oklch(45.6% 0.103 120.8);
Tailwind
colors: {
  custom: {
    50: '#838c54',
    500: '#4f5f0c',
    950: '#000000',
  },
}
SCSS
$custom: #4f5f0c;
$custom-light: #838c54;
$custom-dark: #000000;
JSON
{
  "hex": "#4f5f0c",
  "rgb": {
    "r": 79,
    "g": 95,
    "b": 12
  },
  "hsl": {
    "h": 71.566,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.45615,
    "c": 0.10345,
    "h": 120.8
  },
  "luminance": 0.09873
}

Semantic roles & 50–950 ramp

primary
#4F5F0C
secondary
#422D99
accent
#34F459
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #4F5F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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