#48187F#48187F

#48187F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.159 H 298.8°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#48187F
RGBrgb(72, 24, 127)
HSLhsl(268, 68%, 30%)
HSVhsv(268, 81%, 50%)
CMYKcmyk(43.3%, 81.1%, 0%, 50.2%)
CIE-LABlab(22.17, 43.33, -48.63)
CIE-LCHlch(22.17, 65.14, 311.70°)
OKLaboklab(34.88% 0.0764 -0.1392)
OKLCHoklch(34.88% 0.159 298.8)
XYZxyz(6.8289, 3.5632, 20.4025)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48187F #4F7F18
analogous
#181C7F #48187F #7C187F
triadic
#48187F #7F4818 #187F48
tetradic
#48187F #7F181C #4F7F18 #187F7C
square
#48187F #7F181C #4F7F18 #187F7C
split-complementary
#48187F #7F7C18 #1C7F18
monochromatic
#0F051A #2B0E4C #48187F #6522B2 #8338D9

Accessibility & contrast

On white

12.26
#48187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#48187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48187F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48187F#FFFFFF#000000##FFFFFF
##48187F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#3A344B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #48187f;
/* rgb */ color: rgb(72, 24, 127);
/* oklch */ color: oklch(34.9% 0.159 298.8);
Tailwind
colors: {
  custom: {
    50: '#815ba5',
    500: '#48187f',
    950: '#000000',
  },
}
SCSS
$custom: #48187f;
$custom-light: #815ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#48187f",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 267.961,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34882,
    "c": 0.15875,
    "h": 298.8
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#48187F
secondary
#7DB33F
accent
#EB3D9A
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48187F

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

Preview Lab → · Contrast checker → · Palette generator →

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