#4B28A3#4B28A3

#4B28A3 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.183 H 288.3°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#4B28A3
RGBrgb(75, 40, 163)
HSLhsl(257, 61%, 40%)
HSVhsv(257, 75%, 64%)
CMYKcmyk(54%, 75.5%, 0%, 36.1%)
CIE-LABlab(28.53, 46.20, -60.48)
CIE-LCHlch(28.53, 76.11, 307.38°)
OKLaboklab(40.45% 0.0576 -0.1739)
OKLCHoklch(40.45% 0.183 288.3)
XYZxyz(10.2694, 5.6573, 35.1941)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B28A3 #80A328
analogous
#2843A3 #4B28A3 #8828A3
triadic
#4B28A3 #A34B28 #28A34B
tetradic
#4B28A3 #A32843 #80A328 #28A388
square
#4B28A3 #A32843 #80A328 #28A388
split-complementary
#4B28A3 #A38828 #43A328
monochromatic
#1E1041 #341C72 #4B28A3 #643ACF #8B6BDB

Accessibility & contrast

On white

9.85
#4B28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4B28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B28A3
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B28A3#FFFFFF#000000##FFFFFF
##4B28A31.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A7
Deuteranopia (green-blind)
#0040A1
Tritanopia (blue-blind)
#284A64
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4b28a3;
/* rgb */ color: rgb(75, 40, 163);
/* oklch */ color: oklch(40.5% 0.183 288.3);
Tailwind
colors: {
  custom: {
    50: '#8766bf',
    500: '#4b28a3',
    950: '#000000',
  },
}
SCSS
$custom: #4b28a3;
$custom-light: #8766bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4b28a3",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 257.073,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40451,
    "c": 0.18319,
    "h": 288.3
  },
  "luminance": 0.05658
}

Semantic roles & 50–950 ramp

primary
#4B28A3
secondary
#A7C166
accent
#E444B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4B28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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