#702E9B#702E9B

#702E9B is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.172 H 308.7°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#702E9B
RGBrgb(112, 46, 155)
HSLhsl(276, 54%, 39%)
HSVhsv(276, 70%, 61%)
CMYKcmyk(27.7%, 70.3%, 0%, 39.2%)
CIE-LABlab(33.49, 48.04, -47.35)
CIE-LCHlch(33.49, 67.45, 315.41°)
OKLaboklab(44.78% 0.1076 -0.1341)
OKLCHoklch(44.78% 0.172 308.7)
XYZxyz(13.5743, 7.7655, 31.7878)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#702E9B #599B2E
analogous
#392E9B #702E9B #9B2E90
triadic
#702E9B #9B702E #2E9B70
tetradic
#702E9B #9B392E #599B2E #2E909B
square
#702E9B #9B392E #599B2E #2E909B
split-complementary
#702E9B #909B2E #2E9B39
monochromatic
#2C123D #4E206C #702E9B #9140C6 #AC6FD4

Accessibility & contrast

On white

8.23
#702E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#702E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #702E9B
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##702E9B#FFFFFF#000000##FFFFFF
##702E9B1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#175099
Tritanopia (blue-blind)
#6A4661
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #702e9b;
/* rgb */ color: rgb(112, 46, 155);
/* oklch */ color: oklch(44.8% 0.172 308.7);
Tailwind
colors: {
  custom: {
    50: '#9d6cb9',
    500: '#702e9b',
    950: '#000000',
  },
}
SCSS
$custom: #702e9b;
$custom-light: #9d6cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#702e9b",
  "rgb": {
    "r": 112,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 276.33,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44782,
    "c": 0.17191,
    "h": 308.7
  },
  "luminance": 0.07765
}

Semantic roles & 50–950 ramp

primary
#702E9B
secondary
#8ABC69
accent
#DE4A84
background
#FAF6FB
surface
#F3ECF6
border
#CDC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #702E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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