#702CAB#702CAB

#702CAB is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.8% C 0.191 H 304.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#702CAB
RGBrgb(112, 44, 171)
HSLhsl(272, 59%, 42%)
HSVhsv(272, 74%, 67%)
CMYKcmyk(34.5%, 74.3%, 0%, 32.9%)
CIE-LABlab(34.37, 52.69, -55.57)
CIE-LCHlch(34.37, 76.58, 313.47°)
OKLaboklab(45.78% 0.107 -0.1582)
OKLCHoklch(45.78% 0.191 304.1)
XYZxyz(14.9318, 8.1864, 39.3137)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#702CAB #67AB2C
analogous
#302CAB #702CAB #AB2CA7
triadic
#702CAB #AB702C #2CAB70
tetradic
#702CAB #AB302C #67AB2C #2CA7AB
square
#702CAB #AB302C #67AB2C #2CA7AB
split-complementary
#702CAB #A7AB2C #2CAB30
monochromatic
#30134A #501F7A #702CAB #8F45CF #AC76DC

Accessibility & contrast

On white

7.96
#702CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#702CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #702CAB
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##702CAB#FFFFFF#000000##FFFFFF
##702CAB1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#644B69
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #702cab;
/* rgb */ color: rgb(112, 44, 171);
/* oklch */ color: oklch(45.8% 0.191 304.1);
Tailwind
colors: {
  custom: {
    50: '#9e6cc5',
    500: '#702cab',
    950: '#000000',
  },
}
SCSS
$custom: #702cab;
$custom-light: #9e6cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#702cab",
  "rgb": {
    "r": 112,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 272.126,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45783,
    "c": 0.19102,
    "h": 304.1
  },
  "luminance": 0.08186
}

Semantic roles & 50–950 ramp

primary
#702CAB
secondary
#96C36F
accent
#E2468E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #702CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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