#7F48DB#7F48DB

#7F48DB is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.6% C 0.212 H 295.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7F48DB
RGBrgb(127, 72, 219)
HSLhsl(262, 67%, 57%)
HSVhsv(262, 67%, 86%)
CMYKcmyk(42%, 67.1%, 0%, 14.1%)
CIE-LABlab(44.60, 54.15, -66.88)
CIE-LCHlch(44.60, 86.06, 309.00°)
OKLaboklab(54.62% 0.092 -0.1911)
OKLCHoklch(54.62% 0.212 295.7)
XYZxyz(23.8526, 14.2607, 68.5000)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F48DB #A4DB48
analogous
#485BDB #7F48DB #C948DB
triadic
#7F48DB #DB7F48 #48DB7F
tetradic
#7F48DB #DB485B #A4DB48 #48DBC9
square
#7F48DB #DB485B #A4DB48 #48DBC9
split-complementary
#7F48DB #DBC948 #5BDB48
monochromatic
#461C8D #5F26C0 #7F48DB #A37BE5 #C7AEEF

Accessibility & contrast

On white

5.45
#7F48DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7F48DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F48DB
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F48DB#FFFFFF#000000##FFFFFF
##7F48DB1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#0067D8
Tritanopia (blue-blind)
#676B8C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f48db;
/* rgb */ color: rgb(127, 72, 219);
/* oklch */ color: oklch(54.6% 0.212 295.7);
Tailwind
colors: {
  custom: {
    50: '#ab7fe7',
    500: '#7f48db',
    950: '#000000',
  },
}
SCSS
$custom: #7f48db;
$custom-light: #ab7fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f48db",
  "rgb": {
    "r": 127,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 262.449,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54617,
    "c": 0.21209,
    "h": 295.7
  },
  "luminance": 0.14261
}

Semantic roles & 50–950 ramp

primary
#7F48DB
secondary
#C7DDA2
accent
#EA3EAA
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F48DB

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

Preview Lab → · Contrast checker → · Palette generator →

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