#704CEB#704CEB

#704CEB is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.0% C 0.226 H 286.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#704CEB
RGBrgb(112, 76, 235)
HSLhsl(254, 80%, 61%)
HSVhsv(254, 68%, 92%)
CMYKcmyk(52.3%, 67.7%, 0%, 7.8%)
CIE-LABlab(45.10, 53.81, -75.23)
CIE-LCHlch(45.10, 92.49, 305.58°)
OKLaboklab(55% 0.0654 -0.2161)
OKLCHoklch(55% 0.226 286.8)
XYZxyz(24.2575, 14.6105, 80.1231)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#704CEB #C7EB4C
analogous
#4C77EB #704CEB #BF4CEB
triadic
#704CEB #EB704C #4CEB70
tetradic
#704CEB #EB4C77 #C7EB4C #4CEBBF
square
#704CEB #EB4C77 #C7EB4C #4CEBBF
split-complementary
#704CEB #EBBF4C #77EB4C
monochromatic
#3513AA #4619E1 #704CEB #9C83F1 #C8BAF7

Accessibility & contrast

On white

5.35
#704CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#704CEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #704CEB
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##704CEB#FFFFFF#000000##FFFFFF
##704CEB1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF0
Deuteranopia (green-blind)
#0066E8
Tritanopia (blue-blind)
#3F7596
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #704ceb;
/* rgb */ color: rgb(112, 76, 235);
/* oklch */ color: oklch(55.0% 0.226 286.8);
Tailwind
colors: {
  custom: {
    50: '#a481f3',
    500: '#704ceb',
    950: '#000000',
  },
}
SCSS
$custom: #704ceb;
$custom-light: #a481f3;
$custom-dark: #000000;
JSON
{
  "hex": "#704ceb",
  "rgb": {
    "r": 112,
    "g": 76,
    "b": 235
  },
  "hsl": {
    "h": 253.585,
    "s": 79.899,
    "l": 60.98
  },
  "oklch": {
    "l": 0.55004,
    "c": 0.22578,
    "h": 286.8
  },
  "luminance": 0.14612
}

Semantic roles & 50–950 ramp

primary
#704CEB
secondary
#DAE7AB
accent
#DC09AC
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #704CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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