#631DA7#631DA7

#631DA7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.4% C 0.199 H 300.6°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#631DA7
RGBrgb(99, 29, 167)
HSLhsl(270, 70%, 38%)
HSVhsv(270, 83%, 65%)
CMYKcmyk(40.7%, 82.6%, 0%, 34.5%)
CIE-LABlab(30.21, 55.49, -60.03)
CIE-LCHlch(30.21, 81.75, 312.75°)
OKLaboklab(42.39% 0.1015 -0.1717)
OKLCHoklch(42.39% 0.199 300.6)
XYZxyz(12.5583, 6.3213, 37.1102)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631DA7 #61A71D
analogous
#1E1DA7 #631DA7 #A71DA6
triadic
#631DA7 #A7631D #1DA763
tetradic
#631DA7 #A71E1D #61A71D #1DA6A7
square
#631DA7 #A71E1D #61A71D #1DA6A7
split-complementary
#631DA7 #A6A71D #1DA71E
monochromatic
#250B3F #441473 #631DA7 #8228DA #A05CE3

Accessibility & contrast

On white

9.27
#631DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#631DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631DA7
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631DA7#FFFFFF#000000##FFFFFF
##631DA71.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#534564
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #631da7;
/* rgb */ color: rgb(99, 29, 167);
/* oklch */ color: oklch(42.4% 0.199 300.6);
Tailwind
colors: {
  custom: {
    50: '#9663c2',
    500: '#631da7',
    950: '#000000',
  },
}
SCSS
$custom: #631da7;
$custom-light: #9663c2;
$custom-dark: #000000;
JSON
{
  "hex": "#631da7",
  "rgb": {
    "r": 99,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 270.435,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4239,
    "c": 0.19946,
    "h": 300.6
  },
  "luminance": 0.06321
}

Semantic roles & 50–950 ramp

primary
#631DA7
secondary
#8FC759
accent
#ED3B93
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #631DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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