#704DC7#704DC7

#704DC7 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.181 H 292.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#704DC7
RGBrgb(112, 77, 199)
HSLhsl(257, 52%, 54%)
HSVhsv(257, 61%, 78%)
CMYKcmyk(43.7%, 61.3%, 0%, 22%)
CIE-LABlab(42.57, 43.13, -58.74)
CIE-LCHlch(42.57, 72.88, 306.29°)
OKLaboklab(52.33% 0.0684 -0.1677)
OKLCHoklch(52.33% 0.181 292.2)
XYZxyz(19.6419, 12.8754, 55.4721)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#704DC7 #A4C74D
analogous
#4D67C7 #704DC7 #AD4DC7
triadic
#704DC7 #C7704D #4DC770
tetradic
#704DC7 #C74D67 #A4C74D #4DC7AD
square
#704DC7 #C74D67 #A4C74D #4DC7AD
split-complementary
#704DC7 #C7AD4D #67C74D
monochromatic
#3C2575 #5433A3 #704DC7 #957CD6 #BBAAE4

Accessibility & contrast

On white

5.87
#704DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#704DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #704DC7
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##704DC7#FFFFFF#000000##FFFFFF
##704DC71.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CB
Deuteranopia (green-blind)
#0062C4
Tritanopia (blue-blind)
#576983
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #704dc7;
/* rgb */ color: rgb(112, 77, 199);
/* oklch */ color: oklch(52.3% 0.181 292.2);
Tailwind
colors: {
  custom: {
    50: '#9f80d9',
    500: '#704dc7',
    950: '#000000',
  },
}
SCSS
$custom: #704dc7;
$custom-light: #9f80d9;
$custom-dark: #000000;
JSON
{
  "hex": "#704dc7",
  "rgb": {
    "r": 112,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 257.213,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5233,
    "c": 0.18109,
    "h": 292.2
  },
  "luminance": 0.12876
}

Semantic roles & 50–950 ramp

primary
#704DC7
secondary
#C3D29E
accent
#DC4CB2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #704DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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