#4B227F#4B227F

#4B227F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.148 H 299.0°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#4B227F
RGBrgb(75, 34, 127)
HSLhsl(266, 58%, 32%)
HSVhsv(266, 73%, 50%)
CMYKcmyk(40.9%, 73.2%, 0%, 50.2%)
CIE-LABlab(24.23, 39.15, -45.25)
CIE-LCHlch(24.23, 59.84, 310.87°)
OKLaboklab(36.42% 0.0715 -0.1292)
OKLCHoklch(36.42% 0.148 299)
XYZxyz(7.3035, 4.1721, 20.4951)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B227F #567F22
analogous
#22277F #4B227F #7A227F
triadic
#4B227F #7F4B22 #227F4B
tetradic
#4B227F #7F2227 #567F22 #227F7A
square
#4B227F #7F2227 #567F22 #227F7A
split-complementary
#4B227F #7F7A22 #277F22
monochromatic
#12081E #2E154F #4B227F #682FAF #864CCF

Accessibility & contrast

On white

11.45
#4B227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4B227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B227F
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B227F#FFFFFF#000000##FFFFFF
##4B227F1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#3F394E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4b227f;
/* rgb */ color: rgb(75, 34, 127);
/* oklch */ color: oklch(36.4% 0.148 299.0);
Tailwind
colors: {
  custom: {
    50: '#8261a5',
    500: '#4b227f',
    950: '#000000',
  },
}
SCSS
$custom: #4b227f;
$custom-light: #8261a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b227f",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 266.452,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36421,
    "c": 0.14768,
    "h": 299
  },
  "luminance": 0.04172
}

Semantic roles & 50–950 ramp

primary
#4B227F
secondary
#84B24B
accent
#E1479D
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B227F

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

Preview Lab → · Contrast checker → · Palette generator →

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