#702AA4#702AA4

#702AA4 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.186 H 306.3°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#702AA4
RGBrgb(112, 42, 164)
HSLhsl(274, 59%, 40%)
HSVhsv(274, 74%, 64%)
CMYKcmyk(31.7%, 74.4%, 0%, 35.7%)
CIE-LABlab(33.52, 51.91, -52.74)
CIE-LCHlch(33.52, 74.00, 314.54°)
OKLaboklab(45.02% 0.1103 -0.1499)
OKLCHoklch(45.02% 0.186 306.3)
XYZxyz(14.2094, 7.7812, 35.8681)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#702AA4 #5EA42A
analogous
#332AA4 #702AA4 #A42A9B
triadic
#702AA4 #A4702A #2AA470
tetradic
#702AA4 #A4332A #5EA42A #2A9BA4
square
#702AA4 #A4332A #5EA42A #2A9BA4
split-complementary
#702AA4 #9BA42A #2AA433
monochromatic
#2D1143 #4F1E73 #702AA4 #903ECD #AC6EDA

Accessibility & contrast

On white

8.22
#702AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#702AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #702AA4
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##702AA4#FFFFFF#000000##FFFFFF
##702AA41.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#004FA1
Tritanopia (blue-blind)
#674765
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #702aa4;
/* rgb */ color: rgb(112, 42, 164);
/* oklch */ color: oklch(45.0% 0.186 306.3);
Tailwind
colors: {
  custom: {
    50: '#9e6bc0',
    500: '#702aa4',
    950: '#000000',
  },
}
SCSS
$custom: #702aa4;
$custom-light: #9e6bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#702aa4",
  "rgb": {
    "r": 112,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 274.426,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45016,
    "c": 0.18613,
    "h": 306.3
  },
  "luminance": 0.07781
}

Semantic roles & 50–950 ramp

primary
#702AA4
secondary
#8EC169
accent
#E24588
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #702AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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