#785CEB#785CEB

#785CEB is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.0% C 0.206 H 287.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#785CEB
RGBrgb(120, 92, 235)
HSLhsl(252, 78%, 64%)
HSVhsv(252, 61%, 92%)
CMYKcmyk(48.9%, 60.9%, 0%, 7.8%)
CIE-LABlab(49.06, 46.47, -68.74)
CIE-LCHlch(49.06, 82.97, 304.06°)
OKLaboklab(58.05% 0.0607 -0.1968)
OKLCHoklch(58.05% 0.206 287.1)
XYZxyz(26.5639, 17.6443, 80.5872)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CEB #CFEB5C
analogous
#5C88EB #785CEB #BF5CEB
triadic
#785CEB #EB785C #5CEB78
tetradic
#785CEB #EB5C88 #CFEB5C #5CEBBF
square
#785CEB #EB5C88 #CFEB5C #5CEBBF
split-complementary
#785CEB #EBBF5C #88EB5C
monochromatic
#3616B6 #4B25E4 #785CEB #A593F2 #D2C9F8

Accessibility & contrast

On white

4.64
#785CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#785CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785CEB
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CEB#FFFFFF#000000##FFFFFF
##785CEB1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#4F7E9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #785ceb;
/* rgb */ color: rgb(120, 92, 235);
/* oklch */ color: oklch(58.0% 0.206 287.1);
Tailwind
colors: {
  custom: {
    50: '#a78bf2',
    500: '#785ceb',
    950: '#000000',
  },
}
SCSS
$custom: #785ceb;
$custom-light: #a78bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#785ceb",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 251.748,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.58047,
    "c": 0.20594,
    "h": 287.1
  },
  "luminance": 0.17646
}

Semantic roles & 50–950 ramp

primary
#785CEB
secondary
#E1EAB8
accent
#DA0BB2
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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