#631D8B#631D8B

#631D8B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.172 H 309.5°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#631D8B
RGBrgb(99, 29, 139)
HSLhsl(278, 65%, 33%)
HSVhsv(278, 79%, 55%)
CMYKcmyk(28.8%, 79.1%, 0%, 45.5%)
CIE-LABlab(27.83, 49.01, -46.77)
CIE-LCHlch(27.83, 67.74, 316.34°)
OKLaboklab(40% 0.1093 -0.1327)
OKLCHoklch(40% 0.172 309.5)
XYZxyz(10.2442, 5.3957, 24.9229)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631D8B #458B1D
analogous
#2C1D8B #631D8B #8B1D7C
triadic
#631D8B #8B631D #1D8B63
tetradic
#631D8B #8B2C1D #458B1D #1D7C8B
square
#631D8B #8B2C1D #458B1D #1D7C8B
split-complementary
#631D8B #7C8B1D #1D8B2C
monochromatic
#1B0826 #3F1258 #631D8B #8728BE #A549D9

Accessibility & contrast

On white

10.10
#631D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#631D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631D8B
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631D8B#FFFFFF#000000##FFFFFF
##631D8B1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#5D3853
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #631d8b;
/* rgb */ color: rgb(99, 29, 139);
/* oklch */ color: oklch(40.0% 0.172 309.5);
Tailwind
colors: {
  custom: {
    50: '#9462ae',
    500: '#631d8b',
    950: '#000000',
  },
}
SCSS
$custom: #631d8b;
$custom-light: #9462ae;
$custom-dark: #000000;
JSON
{
  "hex": "#631d8b",
  "rgb": {
    "r": 99,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 278.182,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39998,
    "c": 0.17196,
    "h": 309.5
  },
  "luminance": 0.05395
}

Semantic roles & 50–950 ramp

primary
#631D8B
secondary
#72BB49
accent
#E83F7D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #631D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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