#4D24B1#4D24B1

#4D24B1 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.6% C 0.203 H 287.0°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#4D24B1
RGBrgb(77, 36, 177)
HSLhsl(257, 66%, 42%)
HSVhsv(257, 80%, 69%)
CMYKcmyk(56.5%, 79.7%, 0%, 30.6%)
CIE-LABlab(29.45, 52.30, -67.39)
CIE-LCHlch(29.45, 85.31, 307.82°)
OKLaboklab(41.55% 0.0595 -0.194)
OKLCHoklch(41.55% 0.203 287)
XYZxyz(11.6249, 6.0132, 42.1346)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D24B1 #88B124
analogous
#2442B1 #4D24B1 #9424B1
triadic
#4D24B1 #B14D24 #24B14D
tetradic
#4D24B1 #B12442 #88B124 #24B194
square
#4D24B1 #B12442 #88B124 #24B194
split-complementary
#4D24B1 #B19424 #42B124
monochromatic
#210F4B #371A7E #4D24B1 #683BD7 #906EE1

Accessibility & contrast

On white

9.53
#4D24B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4D24B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D24B1
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D24B1#FFFFFF#000000##FFFFFF
##4D24B11.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#0041AE
Tritanopia (blue-blind)
#1E4E6B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d24b1;
/* rgb */ color: rgb(77, 36, 177);
/* oklch */ color: oklch(41.6% 0.203 287.0);
Tailwind
colors: {
  custom: {
    50: '#8b65ca',
    500: '#4d24b1',
    950: '#000000',
  },
}
SCSS
$custom: #4d24b1;
$custom-light: #8b65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d24b1",
  "rgb": {
    "r": 77,
    "g": 36,
    "b": 177
  },
  "hsl": {
    "h": 257.447,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41552,
    "c": 0.20293,
    "h": 287
  },
  "luminance": 0.06014
}

Semantic roles & 50–950 ramp

primary
#4D24B1
secondary
#ACC869
accent
#E93FB8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D24B1

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

Preview Lab → · Contrast checker → · Palette generator →

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