#4D23B4#4D23B4

#4D23B4 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.7% C 0.207 H 286.6°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4D23B4
RGBrgb(77, 35, 180)
HSLhsl(257, 67%, 42%)
HSVhsv(257, 81%, 71%)
CMYKcmyk(57.2%, 80.6%, 0%, 29.4%)
CIE-LABlab(29.60, 53.56, -68.93)
CIE-LCHlch(29.60, 87.29, 307.85°)
OKLaboklab(41.75% 0.0591 -0.1985)
OKLCHoklch(41.75% 0.207 286.6)
XYZxyz(11.8973, 6.0745, 43.7167)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D23B4 #8AB423
analogous
#2342B4 #4D23B4 #9523B4
triadic
#4D23B4 #B44D23 #23B44D
tetradic
#4D23B4 #B42342 #8AB423 #23B495
square
#4D23B4 #B42342 #8AB423 #23B495
split-complementary
#4D23B4 #B49523 #42B423
monochromatic
#210F4E #371981 #4D23B4 #693BD9 #906EE3

Accessibility & contrast

On white

9.48
#4D23B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4D23B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D23B4
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D23B4#FFFFFF#000000##FFFFFF
##4D23B41.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#0042B1
Tritanopia (blue-blind)
#1A4F6C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d23b4;
/* rgb */ color: rgb(77, 35, 180);
/* oklch */ color: oklch(41.7% 0.207 286.6);
Tailwind
colors: {
  custom: {
    50: '#8b64cc',
    500: '#4d23b4',
    950: '#000000',
  },
}
SCSS
$custom: #4d23b4;
$custom-light: #8b64cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d23b4",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 180
  },
  "hsl": {
    "h": 257.379,
    "s": 67.442,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41749,
    "c": 0.20711,
    "h": 286.6
  },
  "luminance": 0.06075
}

Semantic roles & 50–950 ramp

primary
#4D23B4
secondary
#AEC969
accent
#EA3DB8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4D23B4

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

Preview Lab → · Contrast checker → · Palette generator →

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