#4B228A#4B228A

#4B228A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.161 H 295.5°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#4B228A
RGBrgb(75, 34, 138)
HSLhsl(264, 60%, 34%)
HSVhsv(264, 75%, 54%)
CMYKcmyk(45.7%, 75.4%, 0%, 45.9%)
CIE-LABlab(25.18, 42.16, -50.61)
CIE-LCHlch(25.18, 65.87, 309.80°)
OKLaboklab(37.39% 0.0691 -0.1449)
OKLCHoklch(37.39% 0.161 295.5)
XYZxyz(8.0599, 4.4747, 24.4789)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B228A #618A22
analogous
#222D8A #4B228A #7F228A
triadic
#4B228A #8A4B22 #228A4B
tetradic
#4B228A #8A222D #618A22 #228A7F
square
#4B228A #8A222D #618A22 #228A7F
split-complementary
#4B228A #8A7F22 #2D8A22
monochromatic
#160A28 #301659 #4B228A #662EBB #8552D4

Accessibility & contrast

On white

11.08
#4B228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4B228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B228A
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B228A#FFFFFF#000000##FFFFFF
##4B228A1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#3A3D54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b228a;
/* rgb */ color: rgb(75, 34, 138);
/* oklch */ color: oklch(37.4% 0.161 295.5);
Tailwind
colors: {
  custom: {
    50: '#8461ad',
    500: '#4b228a',
    950: '#000000',
  },
}
SCSS
$custom: #4b228a;
$custom-light: #8461ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4b228a",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 263.654,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37389,
    "c": 0.16056,
    "h": 295.5
  },
  "luminance": 0.04475
}

Semantic roles & 50–950 ramp

primary
#4B228A
secondary
#8FB850
accent
#E444A5
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4B228A

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

Preview Lab → · Contrast checker → · Palette generator →

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