#48338F#48338F

#48338F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.145 H 288.6°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#48338F
RGBrgb(72, 51, 143)
HSLhsl(254, 47%, 38%)
HSVhsv(254, 64%, 56%)
CMYKcmyk(49.7%, 64.3%, 0%, 43.9%)
CIE-LABlab(28.72, 33.56, -47.97)
CIE-LCHlch(28.72, 58.54, 304.98°)
OKLaboklab(39.98% 0.0462 -0.1373)
OKLCHoklch(39.98% 0.145 288.6)
XYZxyz(8.8128, 5.7282, 26.6226)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48338F #7A8F33
analogous
#334C8F #48338F #76338F
triadic
#48338F #8F4833 #338F48
tetradic
#48338F #8F334C #7A8F33 #338F76
square
#48338F #8F334C #7A8F33 #338F76
split-complementary
#48338F #8F7633 #4C8F33
monochromatic
#1B1335 #312362 #48338F #5F43BC #8570CC

Accessibility & contrast

On white

9.79
#48338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#48338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48338F
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48338F#FFFFFF#000000##FFFFFF
##48338F1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#30495C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #48338f;
/* rgb */ color: rgb(72, 51, 143);
/* oklch */ color: oklch(40.0% 0.145 288.6);
Tailwind
colors: {
  custom: {
    50: '#816cb0',
    500: '#48338f',
    950: '#000000',
  },
}
SCSS
$custom: #48338f;
$custom-light: #816cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#48338f",
  "rgb": {
    "r": 72,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 253.696,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39975,
    "c": 0.14486,
    "h": 288.6
  },
  "luminance": 0.05729
}

Semantic roles & 50–950 ramp

primary
#48338F
secondary
#A3B46A
accent
#D751B8
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #48338F

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

Preview Lab → · Contrast checker → · Palette generator →

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