#48229F#48229F

#48229F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.185 H 288.5°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#48229F
RGBrgb(72, 34, 159)
HSLhsl(258, 65%, 38%)
HSVhsv(258, 79%, 62%)
CMYKcmyk(54.7%, 78.6%, 0%, 37.6%)
CIE-LABlab(26.80, 47.54, -60.90)
CIE-LCHlch(26.80, 77.26, 307.98°)
OKLaboklab(39.05% 0.0587 -0.1752)
OKLCHoklch(39.05% 0.185 288.5)
XYZxyz(9.5007, 5.0245, 33.2634)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48229F #799F22
analogous
#223A9F #48229F #86229F
triadic
#48229F #9F4822 #229F48
tetradic
#48229F #9F223A #799F22 #229F86
square
#48229F #9F223A #799F22 #229F86
split-complementary
#48229F #9F8622 #3A9F22
monochromatic
#1A0C3A #31176D #48229F #5F2DD1 #855FDD

Accessibility & contrast

On white

10.47
#48229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#48229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48229F
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48229F#FFFFFF#000000##FFFFFF
##48229F1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#254660
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #48229f;
/* rgb */ color: rgb(72, 34, 159);
/* oklch */ color: oklch(39.0% 0.185 288.5);
Tailwind
colors: {
  custom: {
    50: '#8562bd',
    500: '#48229f',
    950: '#000000',
  },
}
SCSS
$custom: #48229f;
$custom-light: #8562bd;
$custom-dark: #000000;
JSON
{
  "hex": "#48229f",
  "rgb": {
    "r": 72,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 258.24,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39049,
    "c": 0.18474,
    "h": 288.5
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#48229F
secondary
#A2C15B
accent
#E840B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #48229F

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

Preview Lab → · Contrast checker → · Palette generator →

#48229F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva