#4B23A6#4B23A6

#4B23A6 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.192 H 288.4°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4B23A6
RGBrgb(75, 35, 166)
HSLhsl(258, 65%, 39%)
HSVhsv(258, 79%, 65%)
CMYKcmyk(54.8%, 78.9%, 0%, 34.9%)
CIE-LABlab(27.98, 49.45, -63.20)
CIE-LCHlch(27.98, 80.24, 308.04°)
OKLaboklab(40.15% 0.0605 -0.1818)
OKLCHoklch(40.15% 0.192 288.4)
XYZxyz(10.3836, 5.4506, 36.5739)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B23A6 #7EA623
analogous
#233CA6 #4B23A6 #8D23A6
triadic
#4B23A6 #A64B23 #23A64B
tetradic
#4B23A6 #A6233C #7EA623 #23A68D
square
#4B23A6 #A6233C #7EA623 #23A68D
split-complementary
#4B23A6 #A68D23 #3CA623
monochromatic
#1D0E41 #341873 #4B23A6 #6432D4 #8A65DF

Accessibility & contrast

On white

10.05
#4B23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4B23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B23A6
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B23A6#FFFFFF#000000##FFFFFF
##4B23A61.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#254964
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4b23a6;
/* rgb */ color: rgb(75, 35, 166);
/* oklch */ color: oklch(40.2% 0.192 288.4);
Tailwind
colors: {
  custom: {
    50: '#8863c2',
    500: '#4b23a6',
    950: '#000000',
  },
}
SCSS
$custom: #4b23a6;
$custom-light: #8863c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b23a6",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 258.321,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40154,
    "c": 0.19162,
    "h": 288.4
  },
  "luminance": 0.05451
}

Semantic roles & 50–950 ramp

primary
#4B23A6
secondary
#A6C461
accent
#E840B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4B23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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