#7F48A2#7F48A2

#7F48A2 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.7% C 0.146 H 310.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7F48A2
RGBrgb(127, 72, 162)
HSLhsl(277, 38%, 46%)
HSVhsv(277, 56%, 64%)
CMYKcmyk(21.6%, 55.6%, 0%, 36.5%)
CIE-LABlab(40.83, 40.00, -39.70)
CIE-LCHlch(40.83, 56.36, 315.21°)
OKLaboklab(50.67% 0.0948 -0.1113)
OKLCHoklch(50.67% 0.146 310.4)
XYZxyz(17.5901, 11.7557, 35.5179)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F48A2 #6BA248
analogous
#5248A2 #7F48A2 #A24898
triadic
#7F48A2 #A27F48 #48A27F
tetradic
#7F48A2 #A25248 #6BA248 #4898A2
square
#7F48A2 #A25248 #6BA248 #4898A2
split-complementary
#7F48A2 #98A248 #48A252
monochromatic
#3D224D #5E3578 #7F48A2 #9D6ABD #B995D0

Accessibility & contrast

On white

6.27
#7F48A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7F48A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F48A2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F48A2#FFFFFF#000000##FFFFFF
##7F48A21.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5EA5
Deuteranopia (green-blind)
#4061A0
Tritanopia (blue-blind)
#7B586E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f48a2;
/* rgb */ color: rgb(127, 72, 162);
/* oklch */ color: oklch(50.7% 0.146 310.4);
Tailwind
colors: {
  custom: {
    50: '#a67dbe',
    500: '#7f48a2',
    950: '#000000',
  },
}
SCSS
$custom: #7f48a2;
$custom-light: #a67dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f48a2",
  "rgb": {
    "r": 127,
    "g": 72,
    "b": 162
  },
  "hsl": {
    "h": 276.667,
    "s": 38.462,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50672,
    "c": 0.14622,
    "h": 310.4
  },
  "luminance": 0.11755
}

Semantic roles & 50–950 ramp

primary
#7F48A2
secondary
#9DBC8A
accent
#CE5987
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #7F48A2

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

Preview Lab → · Contrast checker → · Palette generator →

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