#631F8E#631F8E

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

Color values

HEX#631F8E
RGBrgb(99, 31, 142)
HSLhsl(277, 64%, 34%)
HSVhsv(277, 78%, 56%)
CMYKcmyk(30.3%, 78.2%, 0%, 44.3%)
CIE-LABlab(28.34, 48.91, -47.80)
CIE-LCHlch(28.34, 68.39, 315.66°)
OKLaboklab(40.43% 0.1069 -0.1358)
OKLCHoklch(40.43% 0.173 308.2)
XYZxyz(10.5170, 5.5858, 26.1101)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631F8E #4A8E1F
analogous
#2C1F8E #631F8E #8E1F82
triadic
#631F8E #8E631F #1F8E63
tetradic
#631F8E #8E2C1F #4A8E1F #1F828E
square
#631F8E #8E2C1F #4A8E1F #1F828E
split-complementary
#631F8E #828E1F #1F8E2C
monochromatic
#1D092A #40145C #631F8E #862AC0 #A34FD9

Accessibility & contrast

On white

9.92
#631F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#631F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631F8E
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631F8E#FFFFFF#000000##FFFFFF
##631F8E1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#5C3A56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #631f8e;
/* rgb */ color: rgb(99, 31, 142);
/* oklch */ color: oklch(40.4% 0.173 308.2);
Tailwind
colors: {
  custom: {
    50: '#9463b0',
    500: '#631f8e',
    950: '#000000',
  },
}
SCSS
$custom: #631f8e;
$custom-light: #9463b0;
$custom-dark: #000000;
JSON
{
  "hex": "#631f8e",
  "rgb": {
    "r": 99,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 276.757,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40431,
    "c": 0.17278,
    "h": 308.2
  },
  "luminance": 0.05586
}

Semantic roles & 50–950 ramp

primary
#631F8E
secondary
#78BB4D
accent
#E74181
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #631F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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