#631B98#631B98

#631B98 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.187 H 305.2°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#631B98
RGBrgb(99, 27, 152)
HSLhsl(275, 70%, 35%)
HSVhsv(275, 82%, 60%)
CMYKcmyk(34.9%, 82.2%, 0%, 40.4%)
CIE-LABlab(28.65, 52.69, -53.46)
CIE-LCHlch(28.65, 75.06, 314.59°)
OKLaboklab(40.9% 0.1076 -0.1524)
OKLCHoklch(40.9% 0.187 305.2)
XYZxyz(11.2037, 5.7036, 30.2103)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631B98 #50981B
analogous
#251B98 #631B98 #981B8E
triadic
#631B98 #98631B #1B9863
tetradic
#631B98 #98251B #50981B #1B8E98
square
#631B98 #98251B #50981B #1B8E98
split-complementary
#631B98 #8E981B #1B9825
monochromatic
#1F0930 #411264 #631B98 #8524CC #A24EE0

Accessibility & contrast

On white

9.81
#631B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#631B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631B98
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631B98#FFFFFF#000000##FFFFFF
##631B981.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#593D5B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #631b98;
/* rgb */ color: rgb(99, 27, 152);
/* oklch */ color: oklch(40.9% 0.187 305.2);
Tailwind
colors: {
  custom: {
    50: '#9562b7',
    500: '#631b98',
    950: '#000000',
  },
}
SCSS
$custom: #631b98;
$custom-light: #9562b7;
$custom-dark: #000000;
JSON
{
  "hex": "#631b98",
  "rgb": {
    "r": 99,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 274.56,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40904,
    "c": 0.18656,
    "h": 305.2
  },
  "luminance": 0.05704
}

Semantic roles & 50–950 ramp

primary
#631B98
secondary
#7FC24D
accent
#ED3B86
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #631B98

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

Preview Lab → · Contrast checker → · Palette generator →

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