#7F48CC#7F48CC

#7F48CC is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.5% C 0.195 H 298.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#7F48CC
RGBrgb(127, 72, 204)
HSLhsl(265, 56%, 54%)
HSVhsv(265, 65%, 80%)
CMYKcmyk(37.7%, 64.7%, 0%, 20%)
CIE-LABlab(43.52, 50.30, -60.04)
CIE-LCHlch(43.52, 78.32, 309.96°)
OKLaboklab(53.49% 0.0938 -0.171)
OKLCHoklch(53.49% 0.195 298.8)
XYZxyz(21.9661, 13.5061, 58.5647)
Luminance0.1351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F48CC #95CC48
analogous
#4853CC #7F48CC #C148CC
triadic
#7F48CC #CC7F48 #48CC7F
tetradic
#7F48CC #CC4853 #95CC48 #48CCC1
square
#7F48CC #CC4853 #95CC48 #48CCC1
split-complementary
#7F48CC #CCC148 #53CC48
monochromatic
#462178 #612FA8 #7F48CC #A078D9 #C2A8E7

Accessibility & contrast

On white

5.67
#7F48CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#7F48CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F48CC
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F48CC#FFFFFF#000000##FFFFFF
##7F48CC1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#6D6684
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f48cc;
/* rgb */ color: rgb(127, 72, 204);
/* oklch */ color: oklch(53.5% 0.195 298.8);
Tailwind
colors: {
  custom: {
    50: '#a97edc',
    500: '#7f48cc',
    950: '#000000',
  },
}
SCSS
$custom: #7f48cc;
$custom-light: #a97edc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f48cc",
  "rgb": {
    "r": 127,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 265,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53492,
    "c": 0.19502,
    "h": 298.8
  },
  "luminance": 0.13506
}

Semantic roles & 50–950 ramp

primary
#7F48CC
secondary
#BDD49C
accent
#E048A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F48CC

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

Preview Lab → · Contrast checker → · Palette generator →

#7F48CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva