#48255B#48255B

#48255B is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.7% C 0.098 H 312.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#48255B
RGBrgb(72, 37, 91)
HSLhsl(279, 42%, 25%)
HSVhsv(279, 59%, 36%)
CMYKcmyk(20.9%, 59.3%, 0%, 64.3%)
CIE-LABlab(21.79, 27.21, -25.94)
CIE-LCHlch(21.79, 37.60, 316.36°)
OKLaboklab(33.72% 0.0659 -0.0727)
OKLCHoklch(33.72% 0.098 312.2)
XYZxyz(5.2220, 3.4563, 10.2875)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48255B #385B25
analogous
#2D255B #48255B #5B2553
triadic
#48255B #5B4825 #255B48
tetradic
#48255B #5B2D25 #385B25 #25535B
square
#48255B #5B2D25 #385B25 #25535B
split-complementary
#48255B #535B25 #255B2D
monochromatic
#110916 #26132F #48255B #6A3787 #8D48B2

Accessibility & contrast

On white

12.42
#48255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#48255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48255B
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48255B#FFFFFF#000000##FFFFFF
##48255B1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16325D
Deuteranopia (green-blind)
#22355A
Tritanopia (blue-blind)
#462E3C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #48255b;
/* rgb */ color: rgb(72, 37, 91);
/* oklch */ color: oklch(33.7% 0.098 312.2);
Tailwind
colors: {
  custom: {
    50: '#7d618a',
    500: '#48255b',
    950: '#000000',
  },
}
SCSS
$custom: #48255b;
$custom-light: #7d618a;
$custom-dark: #000000;
JSON
{
  "hex": "#48255b",
  "rgb": {
    "r": 72,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 278.889,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33721,
    "c": 0.09808,
    "h": 312.2
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#48255B
secondary
#648E4D
accent
#D25682
background
#F7F5F8
surface
#EEEAF0
border
#C9C6CB
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #48255B

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

Preview Lab → · Contrast checker → · Palette generator →

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