#631D8A#631D8A

#631D8A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.171 H 309.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#631D8A
RGBrgb(99, 29, 138)
HSLhsl(279, 65%, 33%)
HSVhsv(279, 79%, 54%)
CMYKcmyk(28.3%, 79%, 0%, 45.9%)
CIE-LABlab(27.75, 48.79, -46.27)
CIE-LCHlch(27.75, 67.24, 316.51°)
OKLaboklab(39.92% 0.1096 -0.1313)
OKLCHoklch(39.92% 0.171 309.8)
XYZxyz(10.1715, 5.3666, 24.5399)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631D8A #448A1D
analogous
#2C1D8A #631D8A #8A1D7A
triadic
#631D8A #8A631D #1D8A63
tetradic
#631D8A #8A2C1D #448A1D #1D7A8A
square
#631D8A #8A2C1D #448A1D #1D7A8A
split-complementary
#631D8A #7A8A1D #1D8A2C
monochromatic
#1A0825 #3F1257 #631D8A #8728BD #A549D9

Accessibility & contrast

On white

10.13
#631D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#631D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631D8A
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631D8A#FFFFFF#000000##FFFFFF
##631D8A1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#5D3853
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #631d8a;
/* rgb */ color: rgb(99, 29, 138);
/* oklch */ color: oklch(39.9% 0.171 309.8);
Tailwind
colors: {
  custom: {
    50: '#9462ad',
    500: '#631d8a',
    950: '#000000',
  },
}
SCSS
$custom: #631d8a;
$custom-light: #9462ad;
$custom-dark: #000000;
JSON
{
  "hex": "#631d8a",
  "rgb": {
    "r": 99,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 278.532,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39918,
    "c": 0.17098,
    "h": 309.8
  },
  "luminance": 0.05366
}

Semantic roles & 50–950 ramp

primary
#631D8A
secondary
#71BB48
accent
#E8407C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #631D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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