#7952BA#7952BA

#7952BA is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.1% C 0.158 H 298.1°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#7952BA
RGBrgb(121, 82, 186)
HSLhsl(263, 43%, 53%)
HSVhsv(263, 56%, 73%)
CMYKcmyk(34.9%, 55.9%, 0%, 27.1%)
CIE-LABlab(43.72, 38.81, -49.29)
CIE-LCHlch(43.72, 62.74, 308.21°)
OKLaboklab(53.11% 0.0746 -0.1396)
OKLCHoklch(53.11% 0.158 298.1)
XYZxyz(19.7632, 13.6445, 48.0373)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7952BA #93BA52
analogous
#525FBA #7952BA #AD52BA
triadic
#7952BA #BA7952 #52BA79
tetradic
#7952BA #BA525F #93BA52 #52BAAD
square
#7952BA #BA525F #93BA52 #52BAAD
split-complementary
#7952BA #BAAD52 #5FBA52
monochromatic
#412A68 #5C3B94 #7952BA #9B7ECB #BDAADD

Accessibility & contrast

On white

5.63
#7952BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#7952BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7952BA
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7952BA#FFFFFF#000000##FFFFFF
##7952BA1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2467BD
Deuteranopia (green-blind)
#3166B8
Tritanopia (blue-blind)
#6B677E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7952ba;
/* rgb */ color: rgb(121, 82, 186);
/* oklch */ color: oklch(53.1% 0.158 298.1);
Tailwind
colors: {
  custom: {
    50: '#a384cf',
    500: '#7952ba',
    950: '#000000',
  },
}
SCSS
$custom: #7952ba;
$custom-light: #a384cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7952ba",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 262.5,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5311,
    "c": 0.1583,
    "h": 298.1
  },
  "luminance": 0.13645
}

Semantic roles & 50–950 ramp

primary
#7952BA
secondary
#BACA9D
accent
#D355A4
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7952BA

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

Preview Lab → · Contrast checker → · Palette generator →

#7952BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva