#481872#481872

#481872 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.145 H 303.6°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#481872
RGBrgb(72, 24, 114)
HSLhsl(272, 65%, 27%)
HSVhsv(272, 79%, 45%)
CMYKcmyk(36.8%, 78.9%, 0%, 55.3%)
CIE-LABlab(21.00, 39.98, -42.23)
CIE-LCHlch(21.00, 58.16, 313.43°)
OKLaboklab(33.7% 0.08 -0.1204)
OKLCHoklch(33.7% 0.145 303.6)
XYZxyz(6.0357, 3.2459, 16.2249)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#481872 #427218
analogous
#1B1872 #481872 #72186F
triadic
#481872 #724818 #187248
tetradic
#481872 #721B18 #427218 #186F72
square
#481872 #721B18 #427218 #186F72
split-complementary
#481872 #6F7218 #18721B
monochromatic
#100519 #280D3F #481872 #6823A5 #8831D4

Accessibility & contrast

On white

12.73
#481872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#481872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #481872
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##481872#FFFFFF#000000##FFFFFF
##4818721.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#402F44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #481872;
/* rgb */ color: rgb(72, 24, 114);
/* oklch */ color: oklch(33.7% 0.145 303.6);
Tailwind
colors: {
  custom: {
    50: '#805b9b',
    500: '#481872',
    950: '#000000',
  },
}
SCSS
$custom: #481872;
$custom-light: #805b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#481872",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 272,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33702,
    "c": 0.14453,
    "h": 303.6
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#481872
secondary
#6FA73E
accent
#E8408E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #481872

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

Preview Lab → · Contrast checker → · Palette generator →

#481872 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva