#48187E#48187E

#48187E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.158 H 299.1°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#48187E
RGBrgb(72, 24, 126)
HSLhsl(268, 68%, 29%)
HSVhsv(268, 81%, 49%)
CMYKcmyk(42.9%, 81%, 0%, 50.6%)
CIE-LABlab(22.08, 43.07, -48.15)
CIE-LCHlch(22.08, 64.60, 311.81°)
OKLaboklab(34.79% 0.0767 -0.1377)
OKLCHoklch(34.79% 0.158 299.1)
XYZxyz(6.7641, 3.5373, 20.0610)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48187E #4E7E18
analogous
#181B7E #48187E #7B187E
triadic
#48187E #7E4818 #187E48
tetradic
#48187E #7E181B #4E7E18 #187E7B
square
#48187E #7E181B #4E7E18 #187E7B
split-complementary
#48187E #7E7B18 #1B7E18
monochromatic
#0F051A #2B0E4B #48187E #6522B1 #8337D9

Accessibility & contrast

On white

12.30
#48187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #48187E
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48187E#FFFFFF#000000##FFFFFF
##48187E1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#3B344B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #48187e;
/* rgb */ color: rgb(72, 24, 126);
/* oklch */ color: oklch(34.8% 0.158 299.1);
Tailwind
colors: {
  custom: {
    50: '#815ba4',
    500: '#48187e',
    950: '#000000',
  },
}
SCSS
$custom: #48187e;
$custom-light: #815ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#48187e",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 268.235,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34788,
    "c": 0.15766,
    "h": 299.1
  },
  "luminance": 0.03537
}

Semantic roles & 50–950 ramp

primary
#48187E
secondary
#7CB23F
accent
#EB3D99
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48187E

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

Preview Lab → · Contrast checker → · Palette generator →

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