#4D23B2#4D23B2

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

Color values

HEX#4D23B2
RGBrgb(77, 35, 178)
HSLhsl(258, 67%, 42%)
HSVhsv(258, 80%, 70%)
CMYKcmyk(56.7%, 80.3%, 0%, 30.2%)
CIE-LABlab(29.40, 53.02, -68.07)
CIE-LCHlch(29.40, 86.28, 307.91°)
OKLaboklab(41.55% 0.0598 -0.196)
OKLCHoklch(41.55% 0.205 287)
XYZxyz(11.6951, 5.9935, 42.6515)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D23B2 #88B223
analogous
#2341B2 #4D23B2 #9523B2
triadic
#4D23B2 #B24D23 #23B24D
tetradic
#4D23B2 #B22341 #88B223 #23B295
square
#4D23B2 #B22341 #88B223 #23B295
split-complementary
#4D23B2 #B29523 #41B223
monochromatic
#210F4C #37197F #4D23B2 #683AD8 #906DE2

Accessibility & contrast

On white

9.55
#4D23B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D23B2
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D23B2#FFFFFF#000000##FFFFFF
##4D23B21.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#0041AF
Tritanopia (blue-blind)
#1D4E6B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d23b2;
/* rgb */ color: rgb(77, 35, 178);
/* oklch */ color: oklch(41.5% 0.205 287.0);
Tailwind
colors: {
  custom: {
    50: '#8b64ca',
    500: '#4d23b2',
    950: '#000000',
  },
}
SCSS
$custom: #4d23b2;
$custom-light: #8b64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d23b2",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 257.622,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41547,
    "c": 0.2049,
    "h": 287
  },
  "luminance": 0.05994
}

Semantic roles & 50–950 ramp

primary
#4D23B2
secondary
#ACC968
accent
#EA3EB7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D23B2

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

Preview Lab → · Contrast checker → · Palette generator →

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