#4A4F0C#4A4F0C

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

Color values

HEX#4A4F0C
RGBrgb(74, 79, 12)
HSLhsl(64, 74%, 18%)
HSVhsv(64, 85%, 31%)
CMYKcmyk(6.3%, 0%, 84.8%, 69%)
CIE-LABlab(31.98, -11.24, 35.71)
CIE-LCHlch(31.98, 37.44, 107.46°)
OKLaboklab(40.97% -0.0347 0.078)
OKLCHoklch(40.97% 0.085 114)
XYZxyz(5.6866, 7.0745, 1.4137)
Luminance0.0707 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A4F0C #110C4F
analogous
#4F330C #4A4F0C #284F0C
triadic
#4A4F0C #0C4A4F #4F0C4A
tetradic
#4A4F0C #0C4F33 #110C4F #4F0C28
square
#4A4F0C #0C4F33 #110C4F #4F0C28
split-complementary
#4A4F0C #0C284F #330C4F
monochromatic
#191B04 #191B04 #4A4F0C #7C8414 #AEB91C

Accessibility & contrast

On white

8.70
#4A4F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4A4F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A4F0C
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A4F0C#FFFFFF#000000##FFFFFF
##4A4F0C1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B00
Deuteranopia (green-blind)
#554C12
Tritanopia (blue-blind)
#504A43
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4a4f0c;
/* rgb */ color: rgb(74, 79, 12);
/* oklch */ color: oklch(41.0% 0.085 114.0);
Tailwind
colors: {
  custom: {
    50: '#7f8052',
    500: '#4a4f0c',
    950: '#000000',
  },
}
SCSS
$custom: #4a4f0c;
$custom-light: #7f8052;
$custom-dark: #000000;
JSON
{
  "hex": "#4a4f0c",
  "rgb": {
    "r": 74,
    "g": 79,
    "b": 12
  },
  "hsl": {
    "h": 64.478,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.40974,
    "c": 0.08541,
    "h": 114
  },
  "luminance": 0.07074
}

Semantic roles & 50–950 ramp

primary
#4A4F0C
secondary
#332C8B
accent
#38F045
background
#F7F7F4
surface
#EEEEE7
border
#C9C9C3
text
#0A0A02
muted
#7C7C78

Preview Lab

Preview with #4A4F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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