#702BAB#702BAB

#702BAB is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.7% C 0.192 H 304.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#702BAB
RGBrgb(112, 43, 171)
HSLhsl(272, 60%, 42%)
HSVhsv(272, 75%, 67%)
CMYKcmyk(34.5%, 74.9%, 0%, 32.9%)
CIE-LABlab(34.22, 53.12, -55.82)
CIE-LCHlch(34.22, 77.05, 313.58°)
OKLaboklab(45.68% 0.108 -0.159)
OKLCHoklch(45.68% 0.192 304.2)
XYZxyz(14.8950, 8.1128, 39.3014)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#702BAB #66AB2B
analogous
#302BAB #702BAB #AB2BA6
triadic
#702BAB #AB702B #2BAB70
tetradic
#702BAB #AB302B #66AB2B #2BA6AB
square
#702BAB #AB302B #66AB2B #2BA6AB
split-complementary
#702BAB #A6AB2B #2BAB30
monochromatic
#301249 #501F7A #702BAB #8F43D0 #AC74DC

Accessibility & contrast

On white

8.01
#702BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#702BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #702BAB
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##702BAB#FFFFFF#000000##FFFFFF
##702BAB1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #702bab;
/* rgb */ color: rgb(112, 43, 171);
/* oklch */ color: oklch(45.7% 0.192 304.2);
Tailwind
colors: {
  custom: {
    50: '#9e6bc5',
    500: '#702bab',
    950: '#000000',
  },
}
SCSS
$custom: #702bab;
$custom-light: #9e6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#702bab",
  "rgb": {
    "r": 112,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 272.344,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45676,
    "c": 0.19215,
    "h": 304.2
  },
  "luminance": 0.08113
}

Semantic roles & 50–950 ramp

primary
#702BAB
secondary
#96C46E
accent
#E3458E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #702BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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