#7F48CB#7F48CB

#7F48CB is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.4% C 0.194 H 299.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#7F48CB
RGBrgb(127, 72, 203)
HSLhsl(265, 56%, 54%)
HSVhsv(265, 65%, 80%)
CMYKcmyk(37.4%, 64.5%, 0%, 20.4%)
CIE-LABlab(43.45, 50.05, -59.57)
CIE-LCHlch(43.45, 77.81, 310.03°)
OKLaboklab(53.42% 0.0939 -0.1696)
OKLCHoklch(53.42% 0.194 299)
XYZxyz(21.8466, 13.4583, 57.9351)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F48CB #94CB48
analogous
#4853CB #7F48CB #C148CB
triadic
#7F48CB #CB7F48 #48CB7F
tetradic
#7F48CB #CB4853 #94CB48 #48CBC1
square
#7F48CB #CB4853 #94CB48 #48CBC1
split-complementary
#7F48CB #CBC148 #53CB48
monochromatic
#452277 #612FA6 #7F48CB #A078D9 #C2A7E6

Accessibility & contrast

On white

5.69
#7F48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#7F48CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F48CB
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F48CB#FFFFFF#000000##FFFFFF
##7F48CB1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#0065C8
Tritanopia (blue-blind)
#6E6683
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f48cb;
/* rgb */ color: rgb(127, 72, 203);
/* oklch */ color: oklch(53.4% 0.194 299.0);
Tailwind
colors: {
  custom: {
    50: '#a97edc',
    500: '#7f48cb',
    950: '#000000',
  },
}
SCSS
$custom: #7f48cb;
$custom-light: #a97edc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f48cb",
  "rgb": {
    "r": 127,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 265.191,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53419,
    "c": 0.19387,
    "h": 299
  },
  "luminance": 0.13459
}

Semantic roles & 50–950 ramp

primary
#7F48CB
secondary
#BCD39B
accent
#DF49A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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