#4C4F0C#4C4F0C

#4C4F0C is a dark, moderate yellow. Relative luminance 0.072; OKLCH L 41.2% C 0.085 H 112.2°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#4C4F0C
RGBrgb(76, 79, 12)
HSLhsl(63, 74%, 18%)
HSVhsv(63, 85%, 31%)
CMYKcmyk(3.8%, 0%, 84.8%, 69%)
CIE-LABlab(32.16, -10.24, 35.94)
CIE-LCHlch(32.16, 37.37, 105.90°)
OKLaboklab(41.16% -0.0321 0.0784)
OKLCHoklch(41.16% 0.085 112.2)
XYZxyz(5.8430, 7.1552, 1.4210)
Luminance0.0716 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C4F0C #0F0C4F
analogous
#4F310C #4C4F0C #2A4F0C
triadic
#4C4F0C #0C4C4F #4F0C4C
tetradic
#4C4F0C #0C4F31 #0F0C4F #4F0C2A
square
#4C4F0C #0C4F31 #0F0C4F #4F0C2A
split-complementary
#4C4F0C #0C2A4F #310C4F
monochromatic
#1A1B04 #1A1B04 #4C4F0C #7F8414 #B2B91C

Accessibility & contrast

On white

8.64
#4C4F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4C4F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C4F0C
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C4F0C#FFFFFF#000000##FFFFFF
##4C4F0C1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B00
Deuteranopia (green-blind)
#564C12
Tritanopia (blue-blind)
#524A43
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4c4f0c;
/* rgb */ color: rgb(76, 79, 12);
/* oklch */ color: oklch(41.2% 0.085 112.2);
Tailwind
colors: {
  custom: {
    50: '#818052',
    500: '#4c4f0c',
    950: '#000000',
  },
}
SCSS
$custom: #4c4f0c;
$custom-light: #818052;
$custom-dark: #000000;
JSON
{
  "hex": "#4c4f0c",
  "rgb": {
    "r": 76,
    "g": 79,
    "b": 12
  },
  "hsl": {
    "h": 62.687,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.41164,
    "c": 0.08475,
    "h": 112.2
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#4C4F0C
secondary
#312C8B
accent
#38F040
background
#F8F7F4
surface
#EFEEE7
border
#CAC9C3
text
#0B0A02
muted
#7C7C78

Preview Lab

Preview with #4C4F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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