#4B5012#4B5012

#4B5012 is a dark, moderate yellow. Relative luminance 0.073; OKLCH L 41.4% C 0.082 H 114.0°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#4B5012
RGBrgb(75, 80, 18)
HSLhsl(65, 63%, 19%)
HSVhsv(65, 78%, 31%)
CMYKcmyk(6.2%, 0%, 77.5%, 68.6%)
CIE-LABlab(32.43, -11.00, 33.84)
CIE-LCHlch(32.43, 35.58, 108.01°)
OKLaboklab(41.37% -0.0335 0.0753)
OKLCHoklch(41.37% 0.082 114)
XYZxyz(5.8797, 7.2770, 1.6670)
Luminance0.0728 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B5012 #171250
analogous
#503612 #4B5012 #2C5012
triadic
#4B5012 #124B50 #50124B
tetradic
#4B5012 #125036 #171250 #50122C
square
#4B5012 #125036 #171250 #50122C
split-complementary
#4B5012 #122C50 #361250
monochromatic
#171906 #1C1E07 #4B5012 #7A821D #A9B428

Accessibility & contrast

On white

8.55
#4B5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4B5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B5012
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B5012#FFFFFF#000000##FFFFFF
##4B50121.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C07
Deuteranopia (green-blind)
#564D17
Tritanopia (blue-blind)
#504B44
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4b5012;
/* rgb */ color: rgb(75, 80, 18);
/* oklch */ color: oklch(41.4% 0.082 114.0);
Tailwind
colors: {
  custom: {
    50: '#808155',
    500: '#4b5012',
    950: '#000000',
  },
}
SCSS
$custom: #4b5012;
$custom-light: #808155;
$custom-dark: #000000;
JSON
{
  "hex": "#4b5012",
  "rgb": {
    "r": 75,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 64.839,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.41372,
    "c": 0.08238,
    "h": 114
  },
  "luminance": 0.07277
}

Semantic roles & 50–950 ramp

primary
#4B5012
secondary
#3C3589
accent
#41E64F
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0A0A03
muted
#7C7C78

Preview Lab

Preview with #4B5012

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

Preview Lab → · Contrast checker → · Palette generator →

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