#4D28D1#4D28D1

#4D28D1 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.2% C 0.235 H 281.6°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#4D28D1
RGBrgb(77, 40, 209)
HSLhsl(253, 68%, 49%)
HSVhsv(253, 81%, 82%)
CMYKcmyk(63.2%, 80.9%, 0%, 18%)
CIE-LABlab(33.35, 59.44, -79.79)
CIE-LCHlch(33.35, 99.49, 306.69°)
OKLaboklab(45.23% 0.0471 -0.2302)
OKLCHoklch(45.23% 0.235 281.6)
XYZxyz(15.3244, 7.6977, 60.9875)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28D1 #ACD128
analogous
#2858D1 #4D28D1 #A228D1
triadic
#4D28D1 #D14D28 #28D14D
tetradic
#4D28D1 #D12858 #ACD128 #28D1A2
square
#4D28D1 #D12858 #ACD128 #28D1A2
split-complementary
#4D28D1 #D1A228 #58D128
monochromatic
#27146A #3A1E9E #4D28D1 #7557DF #9F8BE9

Accessibility & contrast

On white

8.27
#4D28D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4D28D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28D1
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28D1#FFFFFF#000000##FFFFFF
##4D28D11.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D6
Deuteranopia (green-blind)
#0048CE
Tritanopia (blue-blind)
#005C7E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4d28d1;
/* rgb */ color: rgb(77, 40, 209);
/* oklch */ color: oklch(45.2% 0.235 281.6);
Tailwind
colors: {
  custom: {
    50: '#9069e1',
    500: '#4d28d1',
    950: '#000000',
  },
}
SCSS
$custom: #4d28d1;
$custom-light: #9069e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28d1",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 209
  },
  "hsl": {
    "h": 253.136,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45232,
    "c": 0.23497,
    "h": 281.6
  },
  "luminance": 0.07699
}

Semantic roles & 50–950 ramp

primary
#4D28D1
secondary
#C1D382
accent
#EB3DC5
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0E0715
muted
#7E7A84

Preview Lab

Preview with #4D28D1

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

Preview Lab → · Contrast checker → · Palette generator →

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