#48226B#48226B

#48226B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.123 H 304.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#48226B
RGBrgb(72, 34, 107)
HSLhsl(271, 52%, 28%)
HSVhsv(271, 68%, 42%)
CMYKcmyk(32.7%, 68.2%, 0%, 58%)
CIE-LABlab(22.24, 33.11, -35.70)
CIE-LCHlch(22.24, 48.69, 312.85°)
OKLaboklab(34.41% 0.0699 -0.1012)
OKLCHoklch(34.41% 0.123 304.6)
XYZxyz(5.8978, 3.5833, 14.2880)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48226B #456B22
analogous
#24226B #48226B #6B2269
triadic
#48226B #6B4822 #226B48
tetradic
#48226B #6B2422 #456B22 #22696B
square
#48226B #6B2422 #456B22 #22696B
split-complementary
#48226B #696B22 #226B24
monochromatic
#100717 #29133D #48226B #673199 #8644C4

Accessibility & contrast

On white

12.23
#48226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#48226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48226B
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48226B#FFFFFF#000000##FFFFFF
##48226B1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#0D3569
Tritanopia (blue-blind)
#423243
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #48226b;
/* rgb */ color: rgb(72, 34, 107);
/* oklch */ color: oklch(34.4% 0.123 304.6);
Tailwind
colors: {
  custom: {
    50: '#7e6096',
    500: '#48226b',
    950: '#000000',
  },
}
SCSS
$custom: #48226b;
$custom-light: #7e6096;
$custom-dark: #000000;
JSON
{
  "hex": "#48226b",
  "rgb": {
    "r": 72,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 271.233,
    "s": 51.773,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34408,
    "c": 0.12301,
    "h": 304.6
  },
  "luminance": 0.03583
}

Semantic roles & 50–950 ramp

primary
#48226B
secondary
#739F4A
accent
#DB4D91
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #48226B

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

Preview Lab → · Contrast checker → · Palette generator →

#48226B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva