#4B17A0#4B17A0

#4B17A0 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.4% C 0.195 H 291.1°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#4B17A0
RGBrgb(75, 23, 160)
HSLhsl(263, 75%, 36%)
HSVhsv(263, 86%, 63%)
CMYKcmyk(53.1%, 85.6%, 0%, 37.3%)
CIE-LABlab(25.70, 52.71, -63.31)
CIE-LCHlch(25.70, 82.38, 309.78°)
OKLaboklab(38.4% 0.0702 -0.182)
OKLCHoklch(38.4% 0.195 291.1)
XYZxyz(9.5514, 4.6463, 33.6444)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B17A0 #6CA017
analogous
#1727A0 #4B17A0 #8F17A0
triadic
#4B17A0 #A04B17 #17A04B
tetradic
#4B17A0 #A01727 #6CA017 #17A08F
square
#4B17A0 #A01727 #6CA017 #17A08F
split-complementary
#4B17A0 #A08F17 #27A017
monochromatic
#190835 #320F6A #4B17A0 #641FD6 #864CE5

Accessibility & contrast

On white

10.88
#4B17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4B17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B17A0
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B17A0#FFFFFF#000000##FFFFFF
##4B17A01.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#003A9E
Tritanopia (blue-blind)
#2C425E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4b17a0;
/* rgb */ color: rgb(75, 23, 160);
/* oklch */ color: oklch(38.4% 0.195 291.1);
Tailwind
colors: {
  custom: {
    50: '#885dbd',
    500: '#4b17a0',
    950: '#000000',
  },
}
SCSS
$custom: #4b17a0;
$custom-light: #885dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#4b17a0",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 262.774,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38397,
    "c": 0.19507,
    "h": 291.1
  },
  "luminance": 0.04647
}

Semantic roles & 50–950 ramp

primary
#4B17A0
secondary
#98C74C
accent
#F136AA
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4B17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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