#4D23A0#4D23A0

#4D23A0 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.185 H 290.7°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#4D23A0
RGBrgb(77, 35, 160)
HSLhsl(260, 64%, 38%)
HSVhsv(260, 78%, 63%)
CMYKcmyk(51.9%, 78.1%, 0%, 37.3%)
CIE-LABlab(27.62, 48.06, -60.14)
CIE-LCHlch(27.62, 76.99, 308.63°)
OKLaboklab(39.78% 0.0654 -0.1728)
OKLCHoklch(39.78% 0.185 290.7)
XYZxyz(10.0049, 5.3175, 33.7501)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D23A0 #76A023
analogous
#2337A0 #4D23A0 #8B23A0
triadic
#4D23A0 #A04D23 #23A04D
tetradic
#4D23A0 #A02337 #76A023 #23A08B
square
#4D23A0 #A02337 #76A023 #23A08B
split-complementary
#4D23A0 #A08B23 #37A023
monochromatic
#1D0D3C #35186E #4D23A0 #652FD1 #8A61DC

Accessibility & contrast

On white

10.18
#4D23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4D23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D23A0
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D23A0#FFFFFF#000000##FFFFFF
##4D23A01.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A3
Deuteranopia (green-blind)
#003E9E
Tritanopia (blue-blind)
#304661
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4d23a0;
/* rgb */ color: rgb(77, 35, 160);
/* oklch */ color: oklch(39.8% 0.185 290.7);
Tailwind
colors: {
  custom: {
    50: '#8863bd',
    500: '#4d23a0',
    950: '#000000',
  },
}
SCSS
$custom: #4d23a0;
$custom-light: #8863bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d23a0",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 260.16,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39778,
    "c": 0.18478,
    "h": 290.7
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#4D23A0
secondary
#A0C15D
accent
#E741AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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