#704BC7#704BC7

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

Color values

HEX#704BC7
RGBrgb(112, 75, 199)
HSLhsl(258, 53%, 54%)
HSVhsv(258, 62%, 78%)
CMYKcmyk(43.7%, 62.3%, 0%, 22%)
CIE-LABlab(42.15, 44.25, -59.43)
CIE-LCHlch(42.15, 74.09, 306.67°)
OKLaboklab(52.02% 0.0706 -0.1697)
OKLCHoklch(52.02% 0.184 292.6)
XYZxyz(19.5041, 12.5998, 55.4261)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#704BC7 #A2C74B
analogous
#4B64C7 #704BC7 #AE4BC7
triadic
#704BC7 #C7704B #4BC770
tetradic
#704BC7 #C74B64 #A2C74B #4BC7AE
square
#704BC7 #C74B64 #A2C74B #4BC7AE
split-complementary
#704BC7 #C7AE4B #64C74B
monochromatic
#3C2474 #5432A2 #704BC7 #957AD6 #BAA8E4

Accessibility & contrast

On white

5.97
#704BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#704BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #704BC7
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##704BC7#FFFFFF#000000##FFFFFF
##704BC71.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#0061C4
Tritanopia (blue-blind)
#576882
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #704bc7;
/* rgb */ color: rgb(112, 75, 199);
/* oklch */ color: oklch(52.0% 0.184 292.6);
Tailwind
colors: {
  custom: {
    50: '#9f7fd9',
    500: '#704bc7',
    950: '#000000',
  },
}
SCSS
$custom: #704bc7;
$custom-light: #9f7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#704bc7",
  "rgb": {
    "r": 112,
    "g": 75,
    "b": 199
  },
  "hsl": {
    "h": 257.903,
    "s": 52.542,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52024,
    "c": 0.18379,
    "h": 292.6
  },
  "luminance": 0.126
}

Semantic roles & 50–950 ramp

primary
#704BC7
secondary
#C2D19C
accent
#DC4CB1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #704BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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