#7954F2#7954F2

#7954F2 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.5% C 0.224 H 288.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7954F2
RGBrgb(121, 84, 242)
HSLhsl(254, 86%, 64%)
HSVhsv(254, 65%, 95%)
CMYKcmyk(50%, 65.3%, 0%, 5.1%)
CIE-LABlab(48.03, 53.02, -74.34)
CIE-LCHlch(48.03, 91.32, 305.50°)
OKLaboklab(57.48% 0.0692 -0.2132)
OKLCHoklch(57.48% 0.224 288)
XYZxyz(27.0778, 16.8152, 85.8061)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7954F2 #CDF254
analogous
#547EF2 #7954F2 #C854F2
triadic
#7954F2 #F27954 #54F279
tetradic
#7954F2 #F2547E #CDF254 #54F2C8
square
#7954F2 #F2547E #CDF254 #54F2C8
split-complementary
#7954F2 #F2C854 #7EF254
monochromatic
#370EBD #4C1BEE #7954F2 #A68DF6 #D2C6FB

Accessibility & contrast

On white

4.81
#7954F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#7954F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7954F2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7954F2#FFFFFF#000000##FFFFFF
##7954F21.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#006EEF
Tritanopia (blue-blind)
#4D7B9C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7954f2;
/* rgb */ color: rgb(121, 84, 242);
/* oklch */ color: oklch(57.5% 0.224 288.0);
Tailwind
colors: {
  custom: {
    50: '#a986f7',
    500: '#7954f2',
    950: '#000000',
  },
}
SCSS
$custom: #7954f2;
$custom-light: #a986f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7954f2",
  "rgb": {
    "r": 121,
    "g": 84,
    "b": 242
  },
  "hsl": {
    "h": 254.051,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.57478,
    "c": 0.22419,
    "h": 288
  },
  "luminance": 0.16816
}

Semantic roles & 50–950 ramp

primary
#7954F2
secondary
#E0EDB5
accent
#E203AE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7954F2

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

Preview Lab → · Contrast checker → · Palette generator →

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