#4D28B7#4D28B7

#4D28B7 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.6% C 0.206 H 285.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#4D28B7
RGBrgb(77, 40, 183)
HSLhsl(256, 64%, 44%)
HSVhsv(256, 78%, 72%)
CMYKcmyk(57.9%, 78.1%, 0%, 28.2%)
CIE-LABlab(30.67, 52.17, -68.94)
CIE-LCHlch(30.67, 86.45, 307.12°)
OKLaboklab(42.59% 0.055 -0.1986)
OKLCHoklch(42.59% 0.206 285.5)
XYZxyz(12.3640, 6.5135, 45.3963)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28B7 #92B728
analogous
#284BB7 #4D28B7 #9428B7
triadic
#4D28B7 #B74D28 #28B74D
tetradic
#4D28B7 #B7284B #92B728 #28B794
square
#4D28B7 #B7284B #92B728 #28B794
split-complementary
#4D28B7 #B79428 #4BB728
monochromatic
#231253 #381D85 #4D28B7 #6B46D6 #9378E1

Accessibility & contrast

On white

9.12
#4D28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4D28B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28B7
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28B7#FFFFFF#000000##FFFFFF
##4D28B71.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d28b7;
/* rgb */ color: rgb(77, 40, 183);
/* oklch */ color: oklch(42.6% 0.206 285.5);
Tailwind
colors: {
  custom: {
    50: '#8b67ce',
    500: '#4d28b7',
    950: '#000000',
  },
}
SCSS
$custom: #4d28b7;
$custom-light: #8b67ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28b7",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 255.524,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42585,
    "c": 0.20608,
    "h": 285.5
  },
  "luminance": 0.06514
}

Semantic roles & 50–950 ramp

primary
#4D28B7
secondary
#B3C972
accent
#E741BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4D28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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