#4B15B4#4B15B4

#4B15B4 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 40.4% C 0.217 H 286.9°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#4B15B4
RGBrgb(75, 21, 180)
HSLhsl(260, 79%, 39%)
HSVhsv(260, 88%, 71%)
CMYKcmyk(58.3%, 88.3%, 0%, 29.4%)
CIE-LABlab(27.65, 58.49, -72.16)
CIE-LCHlch(27.65, 92.89, 309.03°)
OKLaboklab(40.36% 0.063 -0.2078)
OKLCHoklch(40.36% 0.217 286.9)
XYZxyz(11.4056, 5.3268, 43.5983)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B15B4 #7EB415
analogous
#152FB4 #4B15B4 #9A15B4
triadic
#4B15B4 #B44B15 #15B44B
tetradic
#4B15B4 #B4152F #7EB415 #15B49A
square
#4B15B4 #B4152F #7EB415 #15B49A
split-complementary
#4B15B4 #B49A15 #2FB415
monochromatic
#1D0846 #340F7D #4B15B4 #6421E5 #8A58EC

Accessibility & contrast

On white

10.17
#4B15B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4B15B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B15B4
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B15B4#FFFFFF#000000##FFFFFF
##4B15B41.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#124A6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4b15b4;
/* rgb */ color: rgb(75, 21, 180);
/* oklch */ color: oklch(40.4% 0.217 286.9);
Tailwind
colors: {
  custom: {
    50: '#8b5ecc',
    500: '#4b15b4',
    950: '#000000',
  },
}
SCSS
$custom: #4b15b4;
$custom-light: #8b5ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#4b15b4",
  "rgb": {
    "r": 75,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 260.377,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4036,
    "c": 0.21715,
    "h": 286.9
  },
  "luminance": 0.05327
}

Semantic roles & 50–950 ramp

primary
#4B15B4
secondary
#A6CF56
accent
#F632B3
background
#F9F5FC
surface
#F2EAF9
border
#CCC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4B15B4

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

Preview Lab → · Contrast checker → · Palette generator →

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