#4B238B#4B238B

#4B238B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.161 H 295.0°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#4B238B
RGBrgb(75, 35, 139)
HSLhsl(263, 60%, 34%)
HSVhsv(263, 75%, 55%)
CMYKcmyk(46%, 74.8%, 0%, 45.5%)
CIE-LABlab(25.45, 41.93, -50.80)
CIE-LCHlch(25.45, 65.87, 309.54°)
OKLaboklab(37.6% 0.0679 -0.1455)
OKLCHoklch(37.6% 0.161 295)
XYZxyz(8.1616, 4.5618, 24.8716)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B238B #638B23
analogous
#232F8B #4B238B #7F238B
triadic
#4B238B #8B4B23 #238B4B
tetradic
#4B238B #8B232F #638B23 #238B7F
square
#4B238B #8B232F #638B23 #238B7F
split-complementary
#4B238B #8B7F23 #2F8B23
monochromatic
#160A29 #31175A #4B238B #652FBC #8554D4

Accessibility & contrast

On white

10.98
#4B238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4B238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B238B
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B238B#FFFFFF#000000##FFFFFF
##4B238B1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#393E55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b238b;
/* rgb */ color: rgb(75, 35, 139);
/* oklch */ color: oklch(37.6% 0.161 295.0);
Tailwind
colors: {
  custom: {
    50: '#8462ae',
    500: '#4b238b',
    950: '#000000',
  },
}
SCSS
$custom: #4b238b;
$custom-light: #8462ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b238b",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 263.077,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37604,
    "c": 0.16056,
    "h": 295
  },
  "luminance": 0.04562
}

Semantic roles & 50–950 ramp

primary
#4B238B
secondary
#91B852
accent
#E345A6
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4B238B

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

Preview Lab → · Contrast checker → · Palette generator →

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