#48227E#48227E

#48227E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.146 H 297.4°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#48227E
RGBrgb(72, 34, 126)
HSLhsl(265, 58%, 31%)
HSVhsv(265, 73%, 49%)
CMYKcmyk(42.9%, 73%, 0%, 50.6%)
CIE-LABlab(23.76, 38.28, -45.40)
CIE-LCHlch(23.76, 59.39, 310.14°)
OKLaboklab(35.98% 0.0672 -0.1297)
OKLCHoklch(35.98% 0.146 297.4)
XYZxyz(7.0094, 4.0280, 20.1428)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48227E #587E22
analogous
#222A7E #48227E #76227E
triadic
#48227E #7E4822 #227E48
tetradic
#48227E #7E222A #587E22 #227E76
square
#48227E #7E222A #587E22 #227E76
split-complementary
#48227E #7E7622 #2A7E22
monochromatic
#11081E #2C154E #48227E #642FAE #824CCF

Accessibility & contrast

On white

11.63
#48227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#48227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48227E
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48227E#FFFFFF#000000##FFFFFF
##48227E1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#3A394D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #48227e;
/* rgb */ color: rgb(72, 34, 126);
/* oklch */ color: oklch(36.0% 0.146 297.4);
Tailwind
colors: {
  custom: {
    50: '#8060a4',
    500: '#48227e',
    950: '#000000',
  },
}
SCSS
$custom: #48227e;
$custom-light: #8060a4;
$custom-dark: #000000;
JSON
{
  "hex": "#48227e",
  "rgb": {
    "r": 72,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 264.783,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35976,
    "c": 0.14609,
    "h": 297.4
  },
  "luminance": 0.04028
}

Semantic roles & 50–950 ramp

primary
#48227E
secondary
#87B14B
accent
#E147A1
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #48227E

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

Preview Lab → · Contrast checker → · Palette generator →

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