#704CEC#704CEC

#704CEC is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.1% C 0.227 H 286.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#704CEC
RGBrgb(112, 76, 236)
HSLhsl(254, 81%, 61%)
HSVhsv(254, 68%, 93%)
CMYKcmyk(52.5%, 67.8%, 0%, 7.5%)
CIE-LABlab(45.18, 54.09, -75.66)
CIE-LCHlch(45.18, 93.01, 305.56°)
OKLaboklab(55.09% 0.0652 -0.2174)
OKLCHoklch(55.09% 0.227 286.7)
XYZxyz(24.4024, 14.6685, 80.8861)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#704CEC #C8EC4C
analogous
#4C78EC #704CEC #C04CEC
triadic
#704CEC #EC704C #4CEC70
tetradic
#704CEC #EC4C78 #C8EC4C #4CECC0
square
#704CEC #EC4C78 #C8EC4C #4CECC0
split-complementary
#704CEC #ECC04C #78EC4C
monochromatic
#3512AB #4618E3 #704CEC #9C83F2 #C8BBF8

Accessibility & contrast

On white

5.34
#704CEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#704CEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #704CEC
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##704CEC#FFFFFF#000000##FFFFFF
##704CEC1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF1
Deuteranopia (green-blind)
#0066E9
Tritanopia (blue-blind)
#3E7596
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #704cec;
/* rgb */ color: rgb(112, 76, 236);
/* oklch */ color: oklch(55.1% 0.227 286.7);
Tailwind
colors: {
  custom: {
    50: '#a481f3',
    500: '#704cec',
    950: '#000000',
  },
}
SCSS
$custom: #704cec;
$custom-light: #a481f3;
$custom-dark: #000000;
JSON
{
  "hex": "#704cec",
  "rgb": {
    "r": 112,
    "g": 76,
    "b": 236
  },
  "hsl": {
    "h": 253.5,
    "s": 80.808,
    "l": 61.176
  },
  "oklch": {
    "l": 0.55087,
    "c": 0.22695,
    "h": 286.7
  },
  "luminance": 0.1467
}

Semantic roles & 50–950 ramp

primary
#704CEC
secondary
#DAE8AC
accent
#DD08AD
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #704CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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