#48228C#48228C

#48228C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.163 H 293.2°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#48228C
RGBrgb(72, 34, 140)
HSLhsl(262, 61%, 34%)
HSVhsv(262, 76%, 55%)
CMYKcmyk(48.6%, 75.7%, 0%, 45.1%)
CIE-LABlab(25.00, 42.19, -52.17)
CIE-LCHlch(25.00, 67.09, 308.97°)
OKLaboklab(37.23% 0.064 -0.1496)
OKLCHoklch(37.23% 0.163 293.2)
XYZxyz(7.9768, 4.4150, 25.2377)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48228C #668C22
analogous
#22318C #48228C #7D228C
triadic
#48228C #8C4822 #228C48
tetradic
#48228C #8C2231 #668C22 #228C7D
square
#48228C #8C2231 #668C22 #228C7D
split-complementary
#48228C #8C7D22 #318C22
monochromatic
#150A2A #2F165B #48228C #612EBD #8253D5

Accessibility & contrast

On white

11.15
#48228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#48228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48228C
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48228C#FFFFFF#000000##FFFFFF
##48228C1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#333E55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #48228c;
/* rgb */ color: rgb(72, 34, 140);
/* oklch */ color: oklch(37.2% 0.163 293.2);
Tailwind
colors: {
  custom: {
    50: '#8261af',
    500: '#48228c',
    950: '#000000',
  },
}
SCSS
$custom: #48228c;
$custom-light: #8261af;
$custom-dark: #000000;
JSON
{
  "hex": "#48228c",
  "rgb": {
    "r": 72,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 261.509,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37232,
    "c": 0.16272,
    "h": 293.2
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#48228C
secondary
#94B951
accent
#E444AB
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #48228C

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

Preview Lab → · Contrast checker → · Palette generator →

#48228C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva