#704EB5#704EB5

#704EB5 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.2% C 0.157 H 295.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#704EB5
RGBrgb(112, 78, 181)
HSLhsl(260, 41%, 51%)
HSVhsv(260, 57%, 71%)
CMYKcmyk(38.1%, 56.9%, 0%, 29%)
CIE-LABlab(41.58, 37.59, -49.85)
CIE-LCHlch(41.58, 62.43, 307.02°)
OKLaboklab(51.21% 0.0677 -0.1415)
OKLCHoklch(51.21% 0.157 295.6)
XYZxyz(17.7448, 12.2294, 45.1327)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#704EB5 #93B54E
analogous
#4E5FB5 #704EB5 #A34EB5
triadic
#704EB5 #B5704E #4EB570
tetradic
#704EB5 #B54E5F #93B54E #4EB5A3
square
#704EB5 #B54E5F #93B54E #4EB5A3
split-complementary
#704EB5 #B5A34E #5FB54E
monochromatic
#3B2860 #553A8B #704EB5 #9379C7 #B6A4D9

Accessibility & contrast

On white

6.09
#704EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#704EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #704EB5
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##704EB5#FFFFFF#000000##FFFFFF
##704EB51.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A63B8
Deuteranopia (green-blind)
#2661B3
Tritanopia (blue-blind)
#5F647A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #704eb5;
/* rgb */ color: rgb(112, 78, 181);
/* oklch */ color: oklch(51.2% 0.157 295.6);
Tailwind
colors: {
  custom: {
    50: '#9d81cc',
    500: '#704eb5',
    950: '#000000',
  },
}
SCSS
$custom: #704eb5;
$custom-light: #9d81cc;
$custom-dark: #000000;
JSON
{
  "hex": "#704eb5",
  "rgb": {
    "r": 112,
    "g": 78,
    "b": 181
  },
  "hsl": {
    "h": 259.806,
    "s": 41.036,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51214,
    "c": 0.15688,
    "h": 295.6
  },
  "luminance": 0.1223
}

Semantic roles & 50–950 ramp

primary
#704EB5
secondary
#B7C699
accent
#D157A9
background
#FAF7FC
surface
#F3EEF9
border
#CDC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #704EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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