#481F71#481F71

#481F71 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.135 H 302.8°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#481F71
RGBrgb(72, 31, 113)
HSLhsl(270, 57%, 28%)
HSVhsv(270, 73%, 44%)
CMYKcmyk(36.3%, 72.6%, 0%, 55.7%)
CIE-LABlab(22.12, 36.32, -39.77)
CIE-LCHlch(22.12, 53.86, 312.41°)
OKLaboklab(34.47% 0.0728 -0.1132)
OKLCHoklch(34.47% 0.135 302.8)
XYZxyz(6.1424, 3.5499, 15.9812)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#481F71 #48711F
analogous
#1F1F71 #481F71 #711F71
triadic
#481F71 #71481F #1F7148
tetradic
#481F71 #711F1F #48711F #1F7171
square
#481F71 #711F1F #48711F #1F7171
split-complementary
#481F71 #71711F #1F711F
monochromatic
#0F0718 #291241 #481F71 #672CA1 #8540CB

Accessibility & contrast

On white

12.28
#481F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #481F71
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##481F71#FFFFFF#000000##FFFFFF
##481F711.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#403245
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #481f71;
/* rgb */ color: rgb(72, 31, 113);
/* oklch */ color: oklch(34.5% 0.135 302.8);
Tailwind
colors: {
  custom: {
    50: '#7f5e9a',
    500: '#481f71',
    950: '#000000',
  },
}
SCSS
$custom: #481f71;
$custom-light: #7f5e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#481f71",
  "rgb": {
    "r": 72,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 270,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3447,
    "c": 0.13455,
    "h": 302.8
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#481F71
secondary
#76A547
accent
#E04894
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #481F71

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

Preview Lab → · Contrast checker → · Palette generator →

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