#48227D#48227D

#48227D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.145 H 297.7°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#48227D
RGBrgb(72, 34, 125)
HSLhsl(265, 57%, 31%)
HSVhsv(265, 73%, 49%)
CMYKcmyk(42.4%, 72.8%, 0%, 51%)
CIE-LABlab(23.68, 38.00, -44.91)
CIE-LCHlch(23.68, 58.83, 310.24°)
OKLaboklab(35.89% 0.0673 -0.1283)
OKLCHoklch(35.89% 0.145 297.7)
XYZxyz(6.9452, 4.0023, 19.8047)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48227D #577D22
analogous
#22297D #48227D #75227D
triadic
#48227D #7D4822 #227D48
tetradic
#48227D #7D2229 #577D22 #227D75
square
#48227D #7D2229 #577D22 #227D75
split-complementary
#48227D #7D7522 #297D22
monochromatic
#11081D #2C154D #48227D #642FAD #824BCE

Accessibility & contrast

On white

11.66
#48227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#48227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48227D
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48227D#FFFFFF#000000##FFFFFF
##48227D1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#3B384D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #48227d;
/* rgb */ color: rgb(72, 34, 125);
/* oklch */ color: oklch(35.9% 0.145 297.7);
Tailwind
colors: {
  custom: {
    50: '#8060a3',
    500: '#48227d',
    950: '#000000',
  },
}
SCSS
$custom: #48227d;
$custom-light: #8060a3;
$custom-dark: #000000;
JSON
{
  "hex": "#48227d",
  "rgb": {
    "r": 72,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 265.055,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35889,
    "c": 0.14488,
    "h": 297.7
  },
  "luminance": 0.04002
}

Semantic roles & 50–950 ramp

primary
#48227D
secondary
#86B04B
accent
#E047A1
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #48227D

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

Preview Lab → · Contrast checker → · Palette generator →

#48227D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva