#4B28B7#4B28B7

#4B28B7 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.4% C 0.206 H 284.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4B28B7
RGBrgb(75, 40, 183)
HSLhsl(255, 64%, 44%)
HSVhsv(255, 78%, 72%)
CMYKcmyk(59%, 78.1%, 0%, 28.2%)
CIE-LABlab(30.48, 51.93, -69.27)
CIE-LCHlch(30.48, 86.57, 306.85°)
OKLaboklab(42.4% 0.052 -0.1996)
OKLCHoklch(42.4% 0.206 284.6)
XYZxyz(12.2051, 6.4316, 45.3888)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B28B7 #94B728
analogous
#284CB7 #4B28B7 #9228B7
triadic
#4B28B7 #B74B28 #28B74B
tetradic
#4B28B7 #B7284C #94B728 #28B792
square
#4B28B7 #B7284C #94B728 #28B792
split-complementary
#4B28B7 #B79228 #4CB728
monochromatic
#221253 #361D85 #4B28B7 #6946D6 #9278E1

Accessibility & contrast

On white

9.18
#4B28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4B28B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B28B7
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B28B7#FFFFFF#000000##FFFFFF
##4B28B71.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#0043B4
Tritanopia (blue-blind)
#07526F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4b28b7;
/* rgb */ color: rgb(75, 40, 183);
/* oklch */ color: oklch(42.4% 0.206 284.6);
Tailwind
colors: {
  custom: {
    50: '#8a67ce',
    500: '#4b28b7',
    950: '#000000',
  },
}
SCSS
$custom: #4b28b7;
$custom-light: #8a67ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4b28b7",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 254.685,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42401,
    "c": 0.20629,
    "h": 284.6
  },
  "luminance": 0.06432
}

Semantic roles & 50–950 ramp

primary
#4B28B7
secondary
#B4C972
accent
#E741BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4B28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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