#4B238D#4B238D

#4B238D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.163 H 294.5°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#4B238D
RGBrgb(75, 35, 141)
HSLhsl(263, 60%, 35%)
HSVhsv(263, 75%, 55%)
CMYKcmyk(46.8%, 75.2%, 0%, 44.7%)
CIE-LABlab(25.63, 42.49, -51.75)
CIE-LCHlch(25.63, 66.96, 309.39°)
OKLaboklab(37.79% 0.0675 -0.1483)
OKLCHoklch(37.79% 0.163 294.5)
XYZxyz(8.3091, 4.6208, 25.6482)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B238D #658D23
analogous
#23308D #4B238D #80238D
triadic
#4B238D #8D4B23 #238D4B
tetradic
#4B238D #8D2330 #658D23 #238D80
square
#4B238D #8D2330 #658D23 #238D80
split-complementary
#4B238D #8D8023 #308D23
monochromatic
#170B2B #31175C #4B238D #652FBE #8655D5

Accessibility & contrast

On white

10.91
#4B238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4B238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B238D
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B238D#FFFFFF#000000##FFFFFF
##4B238D1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#383F56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4b238d;
/* rgb */ color: rgb(75, 35, 141);
/* oklch */ color: oklch(37.8% 0.163 294.5);
Tailwind
colors: {
  custom: {
    50: '#8462af',
    500: '#4b238d',
    950: '#000000',
  },
}
SCSS
$custom: #4b238d;
$custom-light: #8462af;
$custom-dark: #000000;
JSON
{
  "hex": "#4b238d",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 262.642,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37785,
    "c": 0.1629,
    "h": 294.5
  },
  "luminance": 0.04621
}

Semantic roles & 50–950 ramp

primary
#4B238D
secondary
#92B953
accent
#E344A7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4B238D

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

Preview Lab → · Contrast checker → · Palette generator →

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