#4D23A9#4D23A9

#4D23A9 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.195 H 288.8°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4D23A9
RGBrgb(77, 35, 169)
HSLhsl(259, 66%, 40%)
HSVhsv(259, 79%, 66%)
CMYKcmyk(54.4%, 79.3%, 0%, 33.7%)
CIE-LABlab(28.50, 50.54, -64.15)
CIE-LCHlch(28.50, 81.67, 308.23°)
OKLaboklab(40.65% 0.0627 -0.1845)
OKLCHoklch(40.65% 0.195 288.8)
XYZxyz(10.8209, 5.6439, 38.0476)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D23A9 #7FA923
analogous
#233CA9 #4D23A9 #9023A9
triadic
#4D23A9 #A94D23 #23A94D
tetradic
#4D23A9 #A9233C #7FA923 #23A990
square
#4D23A9 #A9233C #7FA923 #23A990
split-complementary
#4D23A9 #A99023 #3CA923
monochromatic
#1F0E44 #361976 #4D23A9 #6734D5 #8D67DF

Accessibility & contrast

On white

9.86
#4D23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4D23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D23A9
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D23A9#FFFFFF#000000##FFFFFF
##4D23A91.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0040A7
Tritanopia (blue-blind)
#284A66
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d23a9;
/* rgb */ color: rgb(77, 35, 169);
/* oklch */ color: oklch(40.7% 0.195 288.8);
Tailwind
colors: {
  custom: {
    50: '#8964c4',
    500: '#4d23a9',
    950: '#000000',
  },
}
SCSS
$custom: #4d23a9;
$custom-light: #8964c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d23a9",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 258.806,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.40652,
    "c": 0.1949,
    "h": 288.8
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#4D23A9
secondary
#A6C563
accent
#E93FB4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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