#702BAF#702BAF

#702BAF is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.196 H 303.1°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#702BAF
RGBrgb(112, 43, 175)
HSLhsl(271, 61%, 43%)
HSVhsv(271, 75%, 69%)
CMYKcmyk(36%, 75.4%, 0%, 31.4%)
CIE-LABlab(34.53, 54.06, -57.69)
CIE-LCHlch(34.53, 79.07, 313.14°)
OKLaboklab(46% 0.1071 -0.1645)
OKLCHoklch(46% 0.196 303.1)
XYZxyz(15.2820, 8.2676, 41.3398)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#702BAF #6AAF2B
analogous
#2E2BAF #702BAF #AF2BAC
triadic
#702BAF #AF702B #2BAF70
tetradic
#702BAF #AF2E2B #6AAF2B #2BACAF
square
#702BAF #AF2E2B #6AAF2B #2BACAF
split-complementary
#702BAF #ACAF2B #2BAF2E
monochromatic
#31134D #511F7E #702BAF #8F46D1 #AD77DE

Accessibility & contrast

On white

7.91
#702BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#702BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #702BAF
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##702BAF#FFFFFF#000000##FFFFFF
##702BAF1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#634C6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #702baf;
/* rgb */ color: rgb(112, 43, 175);
/* oklch */ color: oklch(46.0% 0.196 303.1);
Tailwind
colors: {
  custom: {
    50: '#9f6cc8',
    500: '#702baf',
    950: '#000000',
  },
}
SCSS
$custom: #702baf;
$custom-light: #9f6cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#702baf",
  "rgb": {
    "r": 112,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 271.364,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45999,
    "c": 0.19625,
    "h": 303.1
  },
  "luminance": 0.08268
}

Semantic roles & 50–950 ramp

primary
#702BAF
secondary
#99C570
accent
#E44490
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #702BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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