#4B238C#4B238C

#4B238C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.162 H 294.7°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#4B238C
RGBrgb(75, 35, 140)
HSLhsl(263, 60%, 34%)
HSVhsv(263, 75%, 55%)
CMYKcmyk(46.4%, 75%, 0%, 45.1%)
CIE-LABlab(25.54, 42.21, -51.27)
CIE-LCHlch(25.54, 66.41, 309.46°)
OKLaboklab(37.69% 0.0677 -0.1469)
OKLCHoklch(37.69% 0.162 294.7)
XYZxyz(8.2350, 4.5911, 25.2582)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B238C #648C23
analogous
#23308C #4B238C #80238C
triadic
#4B238C #8C4B23 #238C4B
tetradic
#4B238C #8C2330 #648C23 #238C80
square
#4B238C #8C2330 #648C23 #238C80
split-complementary
#4B238C #8C8023 #308C23
monochromatic
#170B2A #31175B #4B238C #652FBD #8655D4

Accessibility & contrast

On white

10.95
#4B238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B238C
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B238C#FFFFFF#000000##FFFFFF
##4B238C1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#383E55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b238c;
/* rgb */ color: rgb(75, 35, 140);
/* oklch */ color: oklch(37.7% 0.162 294.7);
Tailwind
colors: {
  custom: {
    50: '#8462ae',
    500: '#4b238c',
    950: '#000000',
  },
}
SCSS
$custom: #4b238c;
$custom-light: #8462ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b238c",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 262.857,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37694,
    "c": 0.16173,
    "h": 294.7
  },
  "luminance": 0.04591
}

Semantic roles & 50–950 ramp

primary
#4B238C
secondary
#92B852
accent
#E345A7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4B238C

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

Preview Lab → · Contrast checker → · Palette generator →

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