#4B28A2#4B28A2

#4B28A2 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.182 H 288.5°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4B28A2
RGBrgb(75, 40, 162)
HSLhsl(257, 60%, 40%)
HSVhsv(257, 75%, 64%)
CMYKcmyk(53.7%, 75.3%, 0%, 36.5%)
CIE-LABlab(28.44, 45.91, -60.03)
CIE-LCHlch(28.44, 75.57, 307.41°)
OKLaboklab(40.36% 0.0578 -0.1726)
OKLCHoklch(40.36% 0.182 288.5)
XYZxyz(10.1801, 5.6216, 34.7241)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B28A2 #7FA228
analogous
#2842A2 #4B28A2 #8828A2
triadic
#4B28A2 #A24B28 #28A24B
tetradic
#4B28A2 #A22842 #7FA228 #28A288
square
#4B28A2 #A22842 #7FA228 #28A288
split-complementary
#4B28A2 #A28828 #42A228
monochromatic
#1E1040 #341C71 #4B28A2 #6439CE #8A6ADA

Accessibility & contrast

On white

9.89
#4B28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4B28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B28A2
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B28A2#FFFFFF#000000##FFFFFF
##4B28A21.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#294A63
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4b28a2;
/* rgb */ color: rgb(75, 40, 162);
/* oklch */ color: oklch(40.4% 0.182 288.5);
Tailwind
colors: {
  custom: {
    50: '#8766bf',
    500: '#4b28a2',
    950: '#000000',
  },
}
SCSS
$custom: #4b28a2;
$custom-light: #8766bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4b28a2",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 257.213,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40356,
    "c": 0.18202,
    "h": 288.5
  },
  "luminance": 0.05622
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4B28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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