#704FA2#704FA2

#704FA2 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.1% C 0.130 H 300.1°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#704FA2
RGBrgb(112, 79, 162)
HSLhsl(264, 34%, 47%)
HSVhsv(264, 51%, 64%)
CMYKcmyk(30.9%, 51.2%, 0%, 36.5%)
CIE-LABlab(40.65, 31.90, -40.09)
CIE-LCHlch(40.65, 51.23, 308.51°)
OKLaboklab(50.15% 0.0654 -0.1129)
OKLCHoklch(50.15% 0.13 300.1)
XYZxyz(15.9981, 11.6452, 35.5803)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#704FA2 #81A24F
analogous
#4F58A2 #704FA2 #994FA2
triadic
#704FA2 #A2704F #4FA270
tetradic
#704FA2 #A24F58 #81A24F #4FA299
square
#704FA2 #A24F58 #81A24F #4FA299
split-complementary
#704FA2 #A2994F #58A24F
monochromatic
#372750 #543B79 #704FA2 #9073BB #B19CCF

Accessibility & contrast

On white

6.31
#704FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#704FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #704FA2
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##704FA2#FFFFFF#000000##FFFFFF
##704FA21.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3360A5
Deuteranopia (green-blind)
#3B5FA0
Tritanopia (blue-blind)
#665F71
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #704fa2;
/* rgb */ color: rgb(112, 79, 162);
/* oklch */ color: oklch(50.1% 0.130 300.1);
Tailwind
colors: {
  custom: {
    50: '#9c81be',
    500: '#704fa2',
    950: '#000000',
  },
}
SCSS
$custom: #704fa2;
$custom-light: #9c81be;
$custom-dark: #000000;
JSON
{
  "hex": "#704fa2",
  "rgb": {
    "r": 112,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 263.855,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5015,
    "c": 0.13049,
    "h": 300.1
  },
  "luminance": 0.11645
}

Semantic roles & 50–950 ramp

primary
#704FA2
secondary
#ABBC91
accent
#CB5D9F
background
#F9F7FB
surface
#F2EEF7
border
#CCC9D0
text
#0E0A12
muted
#7E7C81

Preview Lab

Preview with #704FA2

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

Preview Lab → · Contrast checker → · Palette generator →

#704FA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva