#4B228C#4B228C

#4B228C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.163 H 294.9°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#4B228C
RGBrgb(75, 34, 140)
HSLhsl(263, 61%, 34%)
HSVhsv(263, 76%, 55%)
CMYKcmyk(46.4%, 75.7%, 0%, 45.1%)
CIE-LABlab(25.36, 42.71, -51.56)
CIE-LCHlch(25.36, 66.95, 309.63°)
OKLaboklab(37.57% 0.0686 -0.1477)
OKLCHoklch(37.57% 0.163 294.9)
XYZxyz(8.2060, 4.5331, 25.2485)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B228C #638C22
analogous
#222E8C #4B228C #80228C
triadic
#4B228C #8C4B22 #228C4B
tetradic
#4B228C #8C222E #638C22 #228C80
square
#4B228C #8C222E #638C22 #228C80
split-complementary
#4B228C #8C8022 #2E8C22
monochromatic
#160A2A #31165B #4B228C #652EBD #8553D5

Accessibility & contrast

On white

11.01
#4B228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B228C
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B228C#FFFFFF#000000##FFFFFF
##4B228C1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b228c;
/* rgb */ color: rgb(75, 34, 140);
/* oklch */ color: oklch(37.6% 0.163 294.9);
Tailwind
colors: {
  custom: {
    50: '#8461af',
    500: '#4b228c',
    950: '#000000',
  },
}
SCSS
$custom: #4b228c;
$custom-light: #8461af;
$custom-dark: #000000;
JSON
{
  "hex": "#4b228c",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 263.208,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3757,
    "c": 0.16288,
    "h": 294.9
  },
  "luminance": 0.04533
}

Semantic roles & 50–950 ramp

primary
#4B228C
secondary
#91B951
accent
#E444A6
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4B228C

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

Preview Lab → · Contrast checker → · Palette generator →

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