#702DB1#702DB1

#702DB1 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.196 H 302.3°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#702DB1
RGBrgb(112, 45, 177)
HSLhsl(270, 59%, 44%)
HSVhsv(270, 75%, 69%)
CMYKcmyk(36.7%, 74.6%, 0%, 30.6%)
CIE-LABlab(34.99, 53.68, -58.13)
CIE-LCHlch(34.99, 79.13, 312.72°)
OKLaboklab(46.37% 0.1048 -0.1658)
OKLCHoklch(46.37% 0.196 302.3)
XYZxyz(15.5544, 8.4958, 42.4068)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#702DB1 #6EB12D
analogous
#2E2DB1 #702DB1 #B12DB0
triadic
#702DB1 #B1702D #2DB170
tetradic
#702DB1 #B12E2D #6EB12D #2DB0B1
square
#702DB1 #B12E2D #6EB12D #2DB0B1
split-complementary
#702DB1 #B0B12D #2DB12E
monochromatic
#32144F #512180 #702DB1 #8F4AD1 #AD7BDD

Accessibility & contrast

On white

7.78
#702DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#702DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #702DB1
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##702DB1#FFFFFF#000000##FFFFFF
##702DB11.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#0052AE
Tritanopia (blue-blind)
#624E6D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #702db1;
/* rgb */ color: rgb(112, 45, 177);
/* oklch */ color: oklch(46.4% 0.196 302.3);
Tailwind
colors: {
  custom: {
    50: '#9f6dc9',
    500: '#702db1',
    950: '#000000',
  },
}
SCSS
$custom: #702db1;
$custom-light: #9f6dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#702db1",
  "rgb": {
    "r": 112,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 270.455,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46373,
    "c": 0.19612,
    "h": 302.3
  },
  "luminance": 0.08496
}

Semantic roles & 50–950 ramp

primary
#702DB1
secondary
#9CC674
accent
#E34593
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #702DB1

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

Preview Lab → · Contrast checker → · Palette generator →

#702DB1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva