#4A4F12#4A4F12

#4A4F12 is a dark, moderate yellow. Relative luminance 0.071; OKLCH L 41.0% C 0.081 H 114.1°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#4A4F12
RGBrgb(74, 79, 18)
HSLhsl(65, 63%, 19%)
HSVhsv(65, 77%, 31%)
CMYKcmyk(6.3%, 0%, 77.2%, 69%)
CIE-LABlab(32.01, -10.91, 33.40)
CIE-LCHlch(32.01, 35.14, 108.09°)
OKLaboklab(41.02% -0.0332 0.0744)
OKLCHoklch(41.02% 0.081 114.1)
XYZxyz(5.7294, 7.0916, 1.6391)
Luminance0.0709 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A4F12 #17124F
analogous
#4F3612 #4A4F12 #2C4F12
triadic
#4A4F12 #124A4F #4F124A
tetradic
#4A4F12 #124F36 #17124F #4F122C
square
#4A4F12 #124F36 #17124F #4F122C
split-complementary
#4A4F12 #122C4F #36124F
monochromatic
#171906 #1B1D07 #4A4F12 #79811D #A7B329

Accessibility & contrast

On white

8.68
#4A4F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4A4F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A4F12
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A4F12#FFFFFF#000000##FFFFFF
##4A4F121.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B08
Deuteranopia (green-blind)
#554C17
Tritanopia (blue-blind)
#4F4A43
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4a4f12;
/* rgb */ color: rgb(74, 79, 18);
/* oklch */ color: oklch(41.0% 0.081 114.1);
Tailwind
colors: {
  custom: {
    50: '#7f8055',
    500: '#4a4f12',
    950: '#000000',
  },
}
SCSS
$custom: #4a4f12;
$custom-light: #7f8055;
$custom-dark: #000000;
JSON
{
  "hex": "#4a4f12",
  "rgb": {
    "r": 74,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 64.918,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.41017,
    "c": 0.08145,
    "h": 114.1
  },
  "luminance": 0.07091
}

Semantic roles & 50–950 ramp

primary
#4A4F12
secondary
#3C3588
accent
#42E64F
background
#F7F7F5
surface
#EEEEE9
border
#C9C9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4A4F12

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

Preview Lab → · Contrast checker → · Palette generator →

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