#631F8D#631F8D

#631F8D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.172 H 308.6°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#631F8D
RGBrgb(99, 31, 141)
HSLhsl(277, 64%, 34%)
HSVhsv(277, 78%, 55%)
CMYKcmyk(29.8%, 78%, 0%, 44.7%)
CIE-LABlab(28.26, 48.68, -47.31)
CIE-LCHlch(28.26, 67.89, 315.82°)
OKLaboklab(40.35% 0.1071 -0.1343)
OKLCHoklch(40.35% 0.172 308.6)
XYZxyz(10.4423, 5.5559, 25.7164)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631F8D #498D1F
analogous
#2C1F8D #631F8D #8D1F80
triadic
#631F8D #8D631F #1F8D63
tetradic
#631F8D #8D2C1F #498D1F #1F808D
square
#631F8D #8D2C1F #498D1F #1F808D
split-complementary
#631F8D #808D1F #1F8D2C
monochromatic
#1D0929 #40145B #631F8D #862ABF #A34ED8

Accessibility & contrast

On white

9.95
#631F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#631F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631F8D
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631F8D#FFFFFF#000000##FFFFFF
##631F8D1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#5C3A55
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #631f8d;
/* rgb */ color: rgb(99, 31, 141);
/* oklch */ color: oklch(40.4% 0.172 308.6);
Tailwind
colors: {
  custom: {
    50: '#9463af',
    500: '#631f8d',
    950: '#000000',
  },
}
SCSS
$custom: #631f8d;
$custom-light: #9463af;
$custom-dark: #000000;
JSON
{
  "hex": "#631f8d",
  "rgb": {
    "r": 99,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 277.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4035,
    "c": 0.17179,
    "h": 308.6
  },
  "luminance": 0.05556
}

Semantic roles & 50–950 ramp

primary
#631F8D
secondary
#77BB4D
accent
#E74180
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #631F8D

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

Preview Lab → · Contrast checker → · Palette generator →

#631F8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva