#631EA8#631EA8

#631EA8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.6% C 0.200 H 300.2°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#631EA8
RGBrgb(99, 30, 168)
HSLhsl(270, 70%, 39%)
HSVhsv(270, 82%, 66%)
CMYKcmyk(41.1%, 82.1%, 0%, 34.1%)
CIE-LABlab(30.42, 55.37, -60.29)
CIE-LCHlch(30.42, 81.86, 312.56°)
OKLaboklab(42.56% 0.1005 -0.1724)
OKLCHoklch(42.56% 0.2 300.2)
XYZxyz(12.6760, 6.4082, 37.6073)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631EA8 #63A81E
analogous
#1E1EA8 #631EA8 #A81EA8
triadic
#631EA8 #A8631E #1EA863
tetradic
#631EA8 #A81E1E #63A81E #1EA8A8
square
#631EA8 #A81E1E #63A81E #1EA8A8
split-complementary
#631EA8 #A8A81E #1EA81E
monochromatic
#260B40 #441574 #631EA8 #822AD9 #A05EE2

Accessibility & contrast

On white

9.20
#631EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#631EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631EA8
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631EA8#FFFFFF#000000##FFFFFF
##631EA81.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#534564
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #631ea8;
/* rgb */ color: rgb(99, 30, 168);
/* oklch */ color: oklch(42.6% 0.200 300.2);
Tailwind
colors: {
  custom: {
    50: '#9664c3',
    500: '#631ea8',
    950: '#000000',
  },
}
SCSS
$custom: #631ea8;
$custom-light: #9664c3;
$custom-dark: #000000;
JSON
{
  "hex": "#631ea8",
  "rgb": {
    "r": 99,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 270,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42564,
    "c": 0.1996,
    "h": 300.2
  },
  "luminance": 0.06408
}

Semantic roles & 50–950 ramp

primary
#631EA8
secondary
#91C75B
accent
#ED3B94
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #631EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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