#7854F2#7854F2

#7854F2 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.4% C 0.224 H 287.6°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7854F2
RGBrgb(120, 84, 242)
HSLhsl(254, 86%, 64%)
HSVhsv(254, 65%, 95%)
CMYKcmyk(50.4%, 65.3%, 0%, 5.1%)
CIE-LABlab(47.93, 52.85, -74.50)
CIE-LCHlch(47.93, 91.34, 305.35°)
OKLaboklab(57.39% 0.0678 -0.2137)
OKLCHoklch(57.39% 0.224 287.6)
XYZxyz(26.9384, 16.7432, 85.7995)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7854F2 #CEF254
analogous
#547FF2 #7854F2 #C754F2
triadic
#7854F2 #F27854 #54F278
tetradic
#7854F2 #F2547F #CEF254 #54F2C7
square
#7854F2 #F2547F #CEF254 #54F2C7
split-complementary
#7854F2 #F2C754 #7FF254
monochromatic
#360EBD #4B1BEE #7854F2 #A58DF6 #D2C6FB

Accessibility & contrast

On white

4.83
#7854F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7854F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7854F2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7854F2#FFFFFF#000000##FFFFFF
##7854F21.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#4B7B9C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7854f2;
/* rgb */ color: rgb(120, 84, 242);
/* oklch */ color: oklch(57.4% 0.224 287.6);
Tailwind
colors: {
  custom: {
    50: '#a986f7',
    500: '#7854f2',
    950: '#000000',
  },
}
SCSS
$custom: #7854f2;
$custom-light: #a986f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7854f2",
  "rgb": {
    "r": 120,
    "g": 84,
    "b": 242
  },
  "hsl": {
    "h": 253.671,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.57391,
    "c": 0.22424,
    "h": 287.6
  },
  "luminance": 0.16745
}

Semantic roles & 50–950 ramp

primary
#7854F2
secondary
#E0EDB5
accent
#E203B0
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7854F2

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

Preview Lab → · Contrast checker → · Palette generator →

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