#704DC2#704DC2

#704DC2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.0% C 0.175 H 293.1°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#704DC2
RGBrgb(112, 77, 194)
HSLhsl(258, 49%, 53%)
HSVhsv(258, 60%, 76%)
CMYKcmyk(42.3%, 60.3%, 0%, 23.9%)
CIE-LABlab(42.23, 41.74, -56.40)
CIE-LCHlch(42.23, 70.17, 306.50°)
OKLaboklab(51.97% 0.0687 -0.1608)
OKLCHoklch(51.97% 0.175 293.1)
XYZxyz(19.0709, 12.6470, 52.4648)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#704DC2 #9FC24D
analogous
#4D64C2 #704DC2 #AB4DC2
triadic
#704DC2 #C2704D #4DC270
tetradic
#704DC2 #C24D64 #9FC24D #4DC2AB
square
#704DC2 #C24D64 #9FC24D #4DC2AB
split-complementary
#704DC2 #C2AB4D #64C24D
monochromatic
#3C266F #54369C #704DC2 #957BD2 #B9A8E1

Accessibility & contrast

On white

5.95
#704DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#704DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #704DC2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##704DC2#FFFFFF#000000##FFFFFF
##704DC21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#0162BF
Tritanopia (blue-blind)
#5A6780
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #704dc2;
/* rgb */ color: rgb(112, 77, 194);
/* oklch */ color: oklch(52.0% 0.175 293.1);
Tailwind
colors: {
  custom: {
    50: '#9f80d5',
    500: '#704dc2',
    950: '#000000',
  },
}
SCSS
$custom: #704dc2;
$custom-light: #9f80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#704dc2",
  "rgb": {
    "r": 112,
    "g": 77,
    "b": 194
  },
  "hsl": {
    "h": 257.949,
    "s": 48.954,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51966,
    "c": 0.17483,
    "h": 293.1
  },
  "luminance": 0.12648
}

Semantic roles & 50–950 ramp

primary
#704DC2
secondary
#C0CF9C
accent
#D94FAF
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#0F0A14
muted
#7F7C83

Preview Lab

Preview with #704DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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