#4B0842#4B0842

#4B0842 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.0% C 0.117 H 334.6°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#4B0842
RGBrgb(75, 8, 66)
HSLhsl(308, 81%, 16%)
HSVhsv(308, 89%, 29%)
CMYKcmyk(0%, 89.3%, 12%, 70.6%)
CIE-LABlab(15.82, 36.37, -18.36)
CIE-LCHlch(15.82, 40.75, 333.21°)
OKLaboklab(28.99% 0.1061 -0.0503)
OKLCHoklch(28.99% 0.117 334.6)
XYZxyz(3.9719, 2.0632, 5.3423)
Luminance0.0206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B0842 #084B11
analogous
#33084B #4B0842 #4B0821
triadic
#4B0842 #424B08 #08424B
tetradic
#4B0842 #4B3308 #084B11 #08214B
square
#4B0842 #4B3308 #084B11 #08214B
split-complementary
#4B0842 #214B08 #084B33
monochromatic
#1C0318 #1C0318 #4B0842 #820E73 #BA14A3

Accessibility & contrast

On white

14.87
#4B0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#4B0842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B0842
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B0842#FFFFFF#000000##FFFFFF
##4B08421.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072143
Deuteranopia (green-blind)
#212B40
Tritanopia (blue-blind)
#4F0F25
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #4b0842;
/* rgb */ color: rgb(75, 8, 66);
/* oklch */ color: oklch(29.0% 0.117 334.6);
Tailwind
colors: {
  custom: {
    50: '#805276',
    500: '#4b0842',
    950: '#000000',
  },
}
SCSS
$custom: #4b0842;
$custom-light: #805276;
$custom-dark: #000000;
JSON
{
  "hex": "#4b0842",
  "rgb": {
    "r": 75,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 308.06,
    "s": 80.723,
    "l": 16.275
  },
  "oklch": {
    "l": 0.28993,
    "c": 0.11739,
    "h": 334.6
  },
  "luminance": 0.02063
}

Semantic roles & 50–950 ramp

primary
#4B0842
secondary
#268933
accent
#F74B31
background
#F8F4F7
surface
#EFE7ED
border
#CAC3C8
text
#0B0208
muted
#7C787B

Preview Lab

Preview with #4B0842

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

Preview Lab → · Contrast checker → · Palette generator →

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