#702DAB#702DAB

#702DAB is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.190 H 303.9°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#702DAB
RGBrgb(112, 45, 171)
HSLhsl(272, 58%, 42%)
HSVhsv(272, 74%, 67%)
CMYKcmyk(34.5%, 73.7%, 0%, 32.9%)
CIE-LABlab(34.52, 52.25, -55.32)
CIE-LCHlch(34.52, 76.10, 313.36°)
OKLaboklab(45.89% 0.106 -0.1575)
OKLCHoklch(45.89% 0.19 303.9)
XYZxyz(14.9695, 8.2618, 39.3262)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#702DAB #68AB2D
analogous
#312DAB #702DAB #AB2DA7
triadic
#702DAB #AB702D #2DAB70
tetradic
#702DAB #AB312D #68AB2D #2DA7AB
square
#702DAB #AB312D #68AB2D #2DA7AB
split-complementary
#702DAB #A7AB2D #2DAB31
monochromatic
#31144A #50207B #702DAB #8F47CE #AC77DB

Accessibility & contrast

On white

7.92
#702DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#702DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #702DAB
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##702DAB#FFFFFF#000000##FFFFFF
##702DAB1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#644C69
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #702dab;
/* rgb */ color: rgb(112, 45, 171);
/* oklch */ color: oklch(45.9% 0.190 303.9);
Tailwind
colors: {
  custom: {
    50: '#9e6cc5',
    500: '#702dab',
    950: '#000000',
  },
}
SCSS
$custom: #702dab;
$custom-light: #9e6cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#702dab",
  "rgb": {
    "r": 112,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 271.905,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45892,
    "c": 0.18988,
    "h": 303.9
  },
  "luminance": 0.08262
}

Semantic roles & 50–950 ramp

primary
#702DAB
secondary
#97C371
accent
#E2468F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #702DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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