#704CB2#704CB2

#704CB2 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.7% C 0.156 H 296.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#704CB2
RGBrgb(112, 76, 178)
HSLhsl(261, 40%, 50%)
HSVhsv(261, 57%, 70%)
CMYKcmyk(37.1%, 57.3%, 0%, 30.2%)
CIE-LABlab(40.94, 37.93, -49.11)
CIE-LCHlch(40.94, 62.05, 307.68°)
OKLaboklab(50.68% 0.0702 -0.1393)
OKLCHoklch(50.68% 0.156 296.7)
XYZxyz(17.3004, 11.8277, 43.4823)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#704CB2 #8EB24C
analogous
#4C5BB2 #704CB2 #A34CB2
triadic
#704CB2 #B2704C #4CB270
tetradic
#704CB2 #B24C5B #8EB24C #4CB2A3
square
#704CB2 #B24C5B #8EB24C #4CB2A3
split-complementary
#704CB2 #B2A34C #5BB24C
monochromatic
#3A275C #553A87 #704CB2 #9276C5 #B4A1D7

Accessibility & contrast

On white

6.24
#704CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#704CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #704CB2
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##704CB2#FFFFFF#000000##FFFFFF
##704CB21.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1961B5
Deuteranopia (green-blind)
#275FB0
Tritanopia (blue-blind)
#616177
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #704cb2;
/* rgb */ color: rgb(112, 76, 178);
/* oklch */ color: oklch(50.7% 0.156 296.7);
Tailwind
colors: {
  custom: {
    50: '#9d7fca',
    500: '#704cb2',
    950: '#000000',
  },
}
SCSS
$custom: #704cb2;
$custom-light: #9d7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#704cb2",
  "rgb": {
    "r": 112,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 261.176,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50683,
    "c": 0.15601,
    "h": 296.7
  },
  "luminance": 0.11828
}

Semantic roles & 50–950 ramp

primary
#704CB2
secondary
#B4C496
accent
#D058A6
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0F0A13
muted
#7E7C82

Preview Lab

Preview with #704CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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