#7854F1#7854F1

#7854F1 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.3% C 0.223 H 287.7°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7854F1
RGBrgb(120, 84, 241)
HSLhsl(254, 85%, 64%)
HSVhsv(254, 65%, 95%)
CMYKcmyk(50.2%, 65.1%, 0%, 5.5%)
CIE-LABlab(47.86, 52.57, -74.06)
CIE-LCHlch(47.86, 90.82, 305.37°)
OKLaboklab(57.31% 0.068 -0.2124)
OKLCHoklch(57.31% 0.223 287.7)
XYZxyz(26.7886, 16.6833, 85.0107)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7854F1 #CDF154
analogous
#547EF1 #7854F1 #C654F1
triadic
#7854F1 #F17854 #54F178
tetradic
#7854F1 #F1547E #CDF154 #54F1C6
square
#7854F1 #F1547E #CDF154 #54F1C6
split-complementary
#7854F1 #F1C654 #7EF154
monochromatic
#370FBB #4B1BEC #7854F1 #A58DF6 #D1C5FA

Accessibility & contrast

On white

4.84
#7854F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7854F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7854F1
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7854F1#FFFFFF#000000##FFFFFF
##7854F11.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F6
Deuteranopia (green-blind)
#006DEE
Tritanopia (blue-blind)
#4C7B9B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7854f1;
/* rgb */ color: rgb(120, 84, 241);
/* oklch */ color: oklch(57.3% 0.223 287.7);
Tailwind
colors: {
  custom: {
    50: '#a886f7',
    500: '#7854f1',
    950: '#000000',
  },
}
SCSS
$custom: #7854f1;
$custom-light: #a886f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7854f1",
  "rgb": {
    "r": 120,
    "g": 84,
    "b": 241
  },
  "hsl": {
    "h": 253.758,
    "s": 84.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57312,
    "c": 0.22306,
    "h": 287.7
  },
  "luminance": 0.16685
}

Semantic roles & 50–950 ramp

primary
#7854F1
secondary
#DFECB5
accent
#E104AF
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7854F1

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

Preview Lab → · Contrast checker → · Palette generator →

#7854F1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva