#7F51EA#7F51EA

#7F51EA is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.0% C 0.218 H 291.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7F51EA
RGBrgb(127, 81, 234)
HSLhsl(258, 78%, 62%)
HSVhsv(258, 65%, 92%)
CMYKcmyk(45.7%, 65.4%, 0%, 8.2%)
CIE-LABlab(47.41, 53.48, -70.82)
CIE-LCHlch(47.41, 88.75, 307.06°)
OKLaboklab(56.98% 0.0811 -0.2027)
OKLCHoklch(56.98% 0.218 291.8)
XYZxyz(26.5420, 16.3365, 79.5807)
Luminance0.1634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F51EA #BCEA51
analogous
#5170EA #7F51EA #CC51EA
triadic
#7F51EA #EA7F51 #51EA7F
tetradic
#7F51EA #EA5170 #BCEA51 #51EACC
square
#7F51EA #EA5170 #BCEA51 #51EACC
split-complementary
#7F51EA #EACC51 #70EA51
monochromatic
#4215AC #571BE2 #7F51EA #A788F1 #CFBEF7

Accessibility & contrast

On white

4.92
#7F51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7F51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F51EA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F51EA#FFFFFF#000000##FFFFFF
##7F51EA1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EF
Deuteranopia (green-blind)
#006DE7
Tritanopia (blue-blind)
#5E7697
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f51ea;
/* rgb */ color: rgb(127, 81, 234);
/* oklch */ color: oklch(57.0% 0.218 291.8);
Tailwind
colors: {
  custom: {
    50: '#ac85f2',
    500: '#7f51ea',
    950: '#000000',
  },
}
SCSS
$custom: #7f51ea;
$custom-light: #ac85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f51ea",
  "rgb": {
    "r": 127,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 258.039,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56984,
    "c": 0.21831,
    "h": 291.8
  },
  "luminance": 0.16337
}

Semantic roles & 50–950 ramp

primary
#7F51EA
secondary
#D7E8AF
accent
#DB0B9C
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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