#4F5A12#4F5A12

#4F5A12 is a dark, moderate yellow. Relative luminance 0.090; OKLCH L 44.3% C 0.094 H 118.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#4F5A12
RGBrgb(79, 90, 18)
HSLhsl(69, 67%, 21%)
HSVhsv(69, 80%, 35%)
CMYKcmyk(12.2%, 0%, 80%, 64.7%)
CIE-LABlab(36.02, -14.74, 37.41)
CIE-LCHlch(36.02, 40.21, 111.50°)
OKLaboklab(44.34% -0.0441 0.0827)
OKLCHoklch(44.34% 0.094 118.1)
XYZxyz(6.9900, 9.0183, 1.9446)
Luminance0.0902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F5A12 #1D125A
analogous
#5A4112 #4F5A12 #2B5A12
triadic
#4F5A12 #124F5A #5A124F
tetradic
#4F5A12 #125A41 #1D125A #5A122B
square
#4F5A12 #125A41 #1D125A #5A122B
split-complementary
#4F5A12 #122B5A #41125A
monochromatic
#161A05 #222708 #4F5A12 #7C8D1C #A9C026

Accessibility & contrast

On white

7.49
#4F5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4F5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F5A12
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F5A12#FFFFFF#000000##FFFFFF
##4F5A121.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615504
Deuteranopia (green-blind)
#5F5518
Tritanopia (blue-blind)
#54554C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4f5a12;
/* rgb */ color: rgb(79, 90, 18);
/* oklch */ color: oklch(44.3% 0.094 118.1);
Tailwind
colors: {
  custom: {
    50: '#838856',
    500: '#4f5a12',
    950: '#000000',
  },
}
SCSS
$custom: #4f5a12;
$custom-light: #838856;
$custom-dark: #000000;
JSON
{
  "hex": "#4f5a12",
  "rgb": {
    "r": 79,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 69.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.44341,
    "c": 0.0937,
    "h": 118.1
  },
  "luminance": 0.09018
}

Semantic roles & 50–950 ramp

primary
#4F5A12
secondary
#443593
accent
#3EEA58
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #4F5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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