#4B17B4#4B17B4

#4B17B4 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.5% C 0.216 H 286.7°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4B17B4
RGBrgb(75, 23, 180)
HSLhsl(260, 77%, 40%)
HSVhsv(260, 87%, 71%)
CMYKcmyk(58.3%, 87.2%, 0%, 29.4%)
CIE-LABlab(27.85, 57.87, -71.82)
CIE-LCHlch(27.85, 92.23, 308.86°)
OKLaboklab(40.5% 0.0622 -0.2068)
OKLCHoklch(40.5% 0.216 286.7)
XYZxyz(11.4438, 5.4033, 43.6111)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B17B4 #80B417
analogous
#1731B4 #4B17B4 #9A17B4
triadic
#4B17B4 #B44B17 #17B44B
tetradic
#4B17B4 #B41731 #80B417 #17B49A
square
#4B17B4 #B41731 #80B417 #17B49A
split-complementary
#4B17B4 #B49A17 #31B417
monochromatic
#1E0947 #34107E #4B17B4 #6425E3 #8B5BEA

Accessibility & contrast

On white

10.09
#4B17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4B17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B17B4
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B17B4#FFFFFF#000000##FFFFFF
##4B17B41.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b17b4;
/* rgb */ color: rgb(75, 23, 180);
/* oklch */ color: oklch(40.5% 0.216 286.7);
Tailwind
colors: {
  custom: {
    50: '#8b5fcc',
    500: '#4b17b4',
    950: '#000000',
  },
}
SCSS
$custom: #4b17b4;
$custom-light: #8b5fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4b17b4",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 259.873,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40501,
    "c": 0.21598,
    "h": 286.7
  },
  "luminance": 0.05404
}

Semantic roles & 50–950 ramp

primary
#4B17B4
secondary
#A7CE59
accent
#F434B4
background
#F9F5FC
surface
#F1EAF9
border
#CBC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4B17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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