#7951FF#7951FF

#7951FF is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.1% C 0.243 H 286.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7951FF
RGBrgb(121, 81, 255)
HSLhsl(254, 100%, 66%)
HSVhsv(254, 68%, 100%)
CMYKcmyk(52.5%, 68.2%, 0%, 0%)
CIE-LABlab(48.47, 58.22, -80.87)
CIE-LCHlch(48.47, 99.65, 305.75°)
OKLaboklab(58.11% 0.0699 -0.2324)
OKLCHoklch(58.11% 0.243 286.7)
XYZxyz(28.8722, 17.1683, 96.3808)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7951FF #D7FF51
analogous
#5180FF #7951FF #D051FF
triadic
#7951FF #FF7951 #51FF79
tetradic
#7951FF #FF5180 #D7FF51 #51FFD0
square
#7951FF #FF5180 #D7FF51 #51FFD0
split-complementary
#7951FF #FFD051 #80FF51
monochromatic
#3100D6 #4A14FF #7951FF #A88EFF #D7CBFF

Accessibility & contrast

On white

4.74
#7951FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#7951FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7951FF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7951FF#FFFFFF#000000##FFFFFF
##7951FF1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077FF
Deuteranopia (green-blind)
#006EFC
Tritanopia (blue-blind)
#427EA2
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7951ff;
/* rgb */ color: rgb(121, 81, 255);
/* oklch */ color: oklch(58.1% 0.243 286.7);
Tailwind
colors: {
  custom: {
    50: '#ab85ff',
    500: '#7951ff',
    950: '#000000',
  },
}
SCSS
$custom: #7951ff;
$custom-light: #ab85ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7951ff",
  "rgb": {
    "r": 121,
    "g": 81,
    "b": 255
  },
  "hsl": {
    "h": 253.793,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.58114,
    "c": 0.24271,
    "h": 286.7
  },
  "luminance": 0.1717
}

Semantic roles & 50–950 ramp

primary
#7951FF
secondary
#E5F3B9
accent
#E600B1
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B18
muted
#807C86

Preview Lab

Preview with #7951FF

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

Preview Lab → · Contrast checker → · Palette generator →

#7951FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva