#481F72#481F72

#481F72 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.136 H 302.3°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#481F72
RGBrgb(72, 31, 114)
HSLhsl(270, 57%, 28%)
HSVhsv(270, 73%, 45%)
CMYKcmyk(36.8%, 72.8%, 0%, 55.3%)
CIE-LABlab(22.20, 36.59, -40.28)
CIE-LCHlch(22.20, 54.42, 312.25°)
OKLaboklab(34.55% 0.0726 -0.1147)
OKLCHoklch(34.55% 0.136 302.3)
XYZxyz(6.1990, 3.5726, 16.2793)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#481F72 #49721F
analogous
#1F1F72 #481F72 #711F72
triadic
#481F72 #72481F #1F7248
tetradic
#481F72 #721F1F #49721F #1F7271
square
#481F72 #721F1F #49721F #1F7271
split-complementary
#481F72 #72711F #1F721F
monochromatic
#0F0718 #2A1242 #481F72 #662CA2 #8540CB

Accessibility & contrast

On white

12.25
#481F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#481F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #481F72
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##481F72#FFFFFF#000000##FFFFFF
##481F721.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#3F3346
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #481f72;
/* rgb */ color: rgb(72, 31, 114);
/* oklch */ color: oklch(34.6% 0.136 302.3);
Tailwind
colors: {
  custom: {
    50: '#7f5e9b',
    500: '#481f72',
    950: '#000000',
  },
}
SCSS
$custom: #481f72;
$custom-light: #7f5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#481f72",
  "rgb": {
    "r": 72,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 269.639,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34553,
    "c": 0.13574,
    "h": 302.3
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#481F72
secondary
#77A647
accent
#E04795
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #481F72

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

Preview Lab → · Contrast checker → · Palette generator →

#481F72 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva