#4B227D#4B227D

#4B227D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.145 H 299.7°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#4B227D
RGBrgb(75, 34, 125)
HSLhsl(267, 57%, 31%)
HSVhsv(267, 73%, 49%)
CMYKcmyk(40%, 72.8%, 0%, 51%)
CIE-LABlab(24.07, 38.61, -44.26)
CIE-LCHlch(24.07, 58.73, 311.10°)
OKLaboklab(36.25% 0.0719 -0.1263)
OKLCHoklch(36.25% 0.145 299.7)
XYZxyz(7.1744, 4.1205, 19.8154)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B227D #547D22
analogous
#22267D #4B227D #78227D
triadic
#4B227D #7D4B22 #227D4B
tetradic
#4B227D #7D2226 #547D22 #227D78
square
#4B227D #7D2226 #547D22 #227D78
split-complementary
#4B227D #7D7822 #267D22
monochromatic
#11081D #2E154D #4B227D #682FAD #864BCE

Accessibility & contrast

On white

11.51
#4B227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4B227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B227D
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B227D#FFFFFF#000000##FFFFFF
##4B227D1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#3F384D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b227d;
/* rgb */ color: rgb(75, 34, 125);
/* oklch */ color: oklch(36.3% 0.145 299.7);
Tailwind
colors: {
  custom: {
    50: '#8261a3',
    500: '#4b227d',
    950: '#000000',
  },
}
SCSS
$custom: #4b227d;
$custom-light: #8261a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b227d",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 267.033,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36251,
    "c": 0.14532,
    "h": 299.7
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#4B227D
secondary
#82B04B
accent
#E0479B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B227D

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

Preview Lab → · Contrast checker → · Palette generator →

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