#631171#631171

#631171 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 37.0% C 0.160 H 321.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#631171
RGBrgb(99, 17, 113)
HSLhsl(291, 74%, 25%)
HSVhsv(291, 85%, 44%)
CMYKcmyk(12.4%, 85%, 0%, 55.7%)
CIE-LABlab(24.47, 47.62, -35.77)
CIE-LCHlch(24.47, 59.56, 323.09°)
OKLaboklab(37.01% 0.1244 -0.1003)
OKLCHoklch(37.01% 0.16 321.1)
XYZxyz(8.3263, 4.2463, 16.0006)
Luminance0.0425 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631171 #1F7111
analogous
#331171 #631171 #71114F
triadic
#631171 #716311 #117163
tetradic
#631171 #713311 #1F7111 #114F71
square
#631171 #713311 #1F7111 #114F71
split-complementary
#631171 #4F7111 #117133
monochromatic
#17041B #34093C #631171 #9219A6 #C021DB

Accessibility & contrast

On white

11.36
#631171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#631171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631171
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631171#FFFFFF#000000##FFFFFF
##6311711.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #631171;
/* rgb */ color: rgb(99, 17, 113);
/* oklch */ color: oklch(37.0% 0.160 321.1);
Tailwind
colors: {
  custom: {
    50: '#935c9a',
    500: '#631171',
    950: '#000000',
  },
}
SCSS
$custom: #631171;
$custom-light: #935c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#631171",
  "rgb": {
    "r": 99,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 291.25,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.37012,
    "c": 0.15982,
    "h": 321.1
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#631171
secondary
#46A836
accent
#F13752
background
#F9F5F9
surface
#F2E9F2
border
#CCC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #631171

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

Preview Lab → · Contrast checker → · Palette generator →

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