#4B28A7#4B28A7

#4B28A7 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.188 H 287.5°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4B28A7
RGBrgb(75, 40, 167)
HSLhsl(257, 61%, 41%)
HSVhsv(257, 76%, 65%)
CMYKcmyk(55.1%, 76%, 0%, 34.5%)
CIE-LABlab(28.91, 47.35, -62.27)
CIE-LCHlch(28.91, 78.23, 307.25°)
OKLaboklab(40.83% 0.0565 -0.1792)
OKLCHoklch(40.83% 0.188 287.5)
XYZxyz(10.6334, 5.8029, 37.1115)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B28A7 #84A728
analogous
#2845A7 #4B28A7 #8A28A7
triadic
#4B28A7 #A74B28 #28A74B
tetradic
#4B28A7 #A72845 #84A728 #28A78A
square
#4B28A7 #A72845 #84A728 #28A78A
split-complementary
#4B28A7 #A78A28 #45A728
monochromatic
#1F1044 #351C76 #4B28A7 #653CD0 #8C6DDC

Accessibility & contrast

On white

9.72
#4B28A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4B28A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B28A7
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B28A7#FFFFFF#000000##FFFFFF
##4B28A71.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#244B66
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4b28a7;
/* rgb */ color: rgb(75, 40, 167);
/* oklch */ color: oklch(40.8% 0.188 287.5);
Tailwind
colors: {
  custom: {
    50: '#8866c2',
    500: '#4b28a7',
    950: '#000000',
  },
}
SCSS
$custom: #4b28a7;
$custom-light: #8866c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b28a7",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 256.535,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40832,
    "c": 0.18787,
    "h": 287.5
  },
  "luminance": 0.05803
}

Semantic roles & 50–950 ramp

primary
#4B28A7
secondary
#AAC368
accent
#E443B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4B28A7

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

Preview Lab → · Contrast checker → · Palette generator →

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