#702BA4#702BA4

#702BA4 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.185 H 306.2°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#702BA4
RGBrgb(112, 43, 164)
HSLhsl(274, 58%, 41%)
HSVhsv(274, 74%, 64%)
CMYKcmyk(31.7%, 73.8%, 0%, 35.7%)
CIE-LABlab(33.67, 51.48, -52.50)
CIE-LCHlch(33.67, 73.52, 314.44°)
OKLaboklab(45.12% 0.1093 -0.1492)
OKLCHoklch(45.12% 0.185 306.2)
XYZxyz(14.2453, 7.8530, 35.8801)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#702BA4 #5FA42B
analogous
#342BA4 #702BA4 #A42B9B
triadic
#702BA4 #A4702B #2BA470
tetradic
#702BA4 #A4342B #5FA42B #2B9BA4
square
#702BA4 #A4342B #5FA42B #2B9BA4
split-complementary
#702BA4 #9BA42B #2BA434
monochromatic
#2E1243 #4F1E74 #702BA4 #903FCD #AC70D9

Accessibility & contrast

On white

8.17
#702BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#702BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #702BA4
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##702BA4#FFFFFF#000000##FFFFFF
##702BA41.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#0050A1
Tritanopia (blue-blind)
#674865
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #702ba4;
/* rgb */ color: rgb(112, 43, 164);
/* oklch */ color: oklch(45.1% 0.185 306.2);
Tailwind
colors: {
  custom: {
    50: '#9e6bc0',
    500: '#702ba4',
    950: '#000000',
  },
}
SCSS
$custom: #702ba4;
$custom-light: #9e6bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#702ba4",
  "rgb": {
    "r": 112,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 274.215,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45123,
    "c": 0.18497,
    "h": 306.2
  },
  "luminance": 0.07853
}

Semantic roles & 50–950 ramp

primary
#702BA4
secondary
#8FC16A
accent
#E24689
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #702BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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