#631271#631271

#631271 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.159 H 321.1°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#631271
RGBrgb(99, 18, 113)
HSLhsl(291, 73%, 26%)
HSVhsv(291, 84%, 44%)
CMYKcmyk(12.4%, 84.1%, 0%, 55.7%)
CIE-LABlab(24.57, 47.33, -35.60)
CIE-LCHlch(24.57, 59.23, 323.05°)
OKLaboklab(37.08% 0.1236 -0.0999)
OKLCHoklch(37.08% 0.159 321.1)
XYZxyz(8.3422, 4.2780, 16.0059)
Luminance0.0428 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631271 #207112
analogous
#331271 #631271 #71124F
triadic
#631271 #716312 #127163
tetradic
#631271 #713312 #207112 #124F71
square
#631271 #713312 #207112 #124F71
split-complementary
#631271 #4F7112 #127133
monochromatic
#17041A #350A3C #631271 #911AA6 #BF23DB

Accessibility & contrast

On white

11.32
#631271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#631271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631271
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631271#FFFFFF#000000##FFFFFF
##6312711.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#1F3D6F
Tritanopia (blue-blind)
#642742
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #631271;
/* rgb */ color: rgb(99, 18, 113);
/* oklch */ color: oklch(37.1% 0.159 321.1);
Tailwind
colors: {
  custom: {
    50: '#935c9a',
    500: '#631271',
    950: '#000000',
  },
}
SCSS
$custom: #631271;
$custom-light: #935c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#631271",
  "rgb": {
    "r": 99,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 291.158,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.37083,
    "c": 0.15891,
    "h": 321.1
  },
  "luminance": 0.04278
}

Semantic roles & 50–950 ramp

primary
#631271
secondary
#48A837
accent
#EF3953
background
#F9F5F9
surface
#F2E9F2
border
#CCC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #631271

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

Preview Lab → · Contrast checker → · Palette generator →

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