#702F9D#702F9D

#702F9D is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.173 H 308.0°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#702F9D
RGBrgb(112, 47, 157)
HSLhsl(275, 54%, 40%)
HSVhsv(275, 70%, 62%)
CMYKcmyk(28.7%, 70.1%, 0%, 38.4%)
CIE-LABlab(33.80, 48.03, -48.06)
CIE-LCHlch(33.80, 67.95, 314.98°)
OKLaboklab(45.05% 0.1062 -0.1362)
OKLCHoklch(45.05% 0.173 308)
XYZxyz(13.7831, 7.9123, 32.6929)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#702F9D #5C9D2F
analogous
#392F9D #702F9D #9D2F93
triadic
#702F9D #9D702F #2F9D70
tetradic
#702F9D #9D392F #5C9D2F #2F939D
square
#702F9D #9D392F #5C9D2F #2F939D
split-complementary
#702F9D #939D2F #2F9D39
monochromatic
#2D133F #4E216E #702F9D #9143C7 #AC72D5

Accessibility & contrast

On white

8.13
#702F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#702F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #702F9D
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##702F9D#FFFFFF#000000##FFFFFF
##702F9D1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#14509B
Tritanopia (blue-blind)
#694762
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #702f9d;
/* rgb */ color: rgb(112, 47, 157);
/* oklch */ color: oklch(45.0% 0.173 308.0);
Tailwind
colors: {
  custom: {
    50: '#9d6dbb',
    500: '#702f9d',
    950: '#000000',
  },
}
SCSS
$custom: #702f9d;
$custom-light: #9d6dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#702f9d",
  "rgb": {
    "r": 112,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 275.455,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.45048,
    "c": 0.17272,
    "h": 308
  },
  "luminance": 0.07912
}

Semantic roles & 50–950 ramp

primary
#702F9D
secondary
#8DBC6B
accent
#DD4B87
background
#FAF6FB
surface
#F3ECF6
border
#CDC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #702F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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