#4A15B4#4A15B4

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

Color values

HEX#4A15B4
RGBrgb(74, 21, 180)
HSLhsl(260, 79%, 39%)
HSVhsv(260, 88%, 71%)
CMYKcmyk(58.9%, 88.3%, 0%, 29.4%)
CIE-LABlab(27.54, 58.40, -72.34)
CIE-LCHlch(27.54, 92.98, 308.91°)
OKLaboklab(40.26% 0.0614 -0.2084)
OKLCHoklch(40.26% 0.217 286.4)
XYZxyz(11.3279, 5.2868, 43.5947)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A15B4 #7FB415
analogous
#1530B4 #4A15B4 #9A15B4
triadic
#4A15B4 #B44A15 #15B44A
tetradic
#4A15B4 #B41530 #7FB415 #15B49A
square
#4A15B4 #B41530 #7FB415 #15B49A
split-complementary
#4A15B4 #B49A15 #30B415
monochromatic
#1D0846 #330F7D #4A15B4 #6221E5 #8958EC

Accessibility & contrast

On white

10.21
#4A15B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4A15B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A15B4
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A15B4#FFFFFF#000000##FFFFFF
##4A15B41.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#003CB1
Tritanopia (blue-blind)
#0C4A6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a15b4;
/* rgb */ color: rgb(74, 21, 180);
/* oklch */ color: oklch(40.3% 0.217 286.4);
Tailwind
colors: {
  custom: {
    50: '#8a5ecc',
    500: '#4a15b4',
    950: '#000000',
  },
}
SCSS
$custom: #4a15b4;
$custom-light: #8a5ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a15b4",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 260,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4026,
    "c": 0.21723,
    "h": 286.4
  },
  "luminance": 0.05287
}

Semantic roles & 50–950 ramp

primary
#4A15B4
secondary
#A6CF56
accent
#F632B4
background
#F9F5FC
surface
#F1EAF9
border
#CBC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4A15B4

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

Preview Lab → · Contrast checker → · Palette generator →

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