#702FAB#702FAB

#702FAB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.188 H 303.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#702FAB
RGBrgb(112, 47, 171)
HSLhsl(271, 57%, 43%)
HSVhsv(271, 73%, 67%)
CMYKcmyk(34.5%, 72.5%, 0%, 32.9%)
CIE-LABlab(34.84, 51.35, -54.81)
CIE-LCHlch(34.84, 75.11, 313.14°)
OKLaboklab(46.12% 0.1041 -0.156)
OKLCHoklch(46.12% 0.188 303.7)
XYZxyz(15.0476, 8.4181, 39.3523)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#702FAB #6AAB2F
analogous
#322FAB #702FAB #AB2FA8
triadic
#702FAB #AB702F #2FAB70
tetradic
#702FAB #AB322F #6AAB2F #2FA8AB
square
#702FAB #AB322F #6AAB2F #2FA8AB
split-complementary
#702FAB #A8AB2F #2FAB32
monochromatic
#31154B #51227B #702FAB #8F4ACD #AD7ADA

Accessibility & contrast

On white

7.83
#702FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#702FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #702FAB
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##702FAB#FFFFFF#000000##FFFFFF
##702FAB1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0052A8
Tritanopia (blue-blind)
#644D6A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #702fab;
/* rgb */ color: rgb(112, 47, 171);
/* oklch */ color: oklch(46.1% 0.188 303.7);
Tailwind
colors: {
  custom: {
    50: '#9e6dc5',
    500: '#702fab',
    950: '#000000',
  },
}
SCSS
$custom: #702fab;
$custom-light: #9e6dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#702fab",
  "rgb": {
    "r": 112,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 271.452,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46116,
    "c": 0.18754,
    "h": 303.7
  },
  "luminance": 0.08418
}

Semantic roles & 50–950 ramp

primary
#702FAB
secondary
#99C373
accent
#E04890
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #702FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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