#7F56EA#7F56EA

#7F56EA is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.7% C 0.212 H 291.0°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7F56EA
RGBrgb(127, 86, 234)
HSLhsl(257, 78%, 63%)
HSVhsv(257, 63%, 92%)
CMYKcmyk(45.7%, 63.2%, 0%, 8.2%)
CIE-LABlab(48.39, 50.82, -69.23)
CIE-LCHlch(48.39, 85.88, 306.29°)
OKLaboklab(57.69% 0.076 -0.198)
OKLCHoklch(57.69% 0.212 291)
XYZxyz(26.9273, 17.1072, 79.7092)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56EA #C1EA56
analogous
#5677EA #7F56EA #C956EA
triadic
#7F56EA #EA7F56 #56EA7F
tetradic
#7F56EA #EA5677 #C1EA56 #56EAC9
square
#7F56EA #EA5677 #C1EA56 #56EAC9
split-complementary
#7F56EA #EAC956 #77EA56
monochromatic
#4016B0 #5620E3 #7F56EA #A88CF1 #D1C3F8

Accessibility & contrast

On white

4.75
#7F56EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7F56EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56EA
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56EA#FFFFFF#000000##FFFFFF
##7F56EA1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#0070E7
Tritanopia (blue-blind)
#5E7998
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f56ea;
/* rgb */ color: rgb(127, 86, 234);
/* oklch */ color: oklch(57.7% 0.212 291.0);
Tailwind
colors: {
  custom: {
    50: '#ac88f2',
    500: '#7f56ea',
    950: '#000000',
  },
}
SCSS
$custom: #7f56ea;
$custom-light: #ac88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56ea",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 234
  },
  "hsl": {
    "h": 256.622,
    "s": 77.895,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57693,
    "c": 0.21211,
    "h": 291
  },
  "luminance": 0.17108
}

Semantic roles & 50–950 ramp

primary
#7F56EA
secondary
#DAE9B3
accent
#DA0BA1
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F56EA

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

Preview Lab → · Contrast checker → · Palette generator →

#7F56EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva