#7F28B2#7F28B2

#7F28B2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.9% C 0.206 H 309.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#7F28B2
RGBrgb(127, 40, 178)
HSLhsl(278, 63%, 43%)
HSVhsv(278, 78%, 70%)
CMYKcmyk(28.7%, 77.5%, 0%, 30.2%)
CIE-LABlab(36.45, 58.61, -56.27)
CIE-LCHlch(36.45, 81.25, 316.17°)
OKLaboklab(47.86% 0.13 -0.1597)
OKLCHoklch(47.86% 0.206 309.1)
XYZxyz(17.5454, 9.2443, 42.9709)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F28B2 #5BB228
analogous
#3A28B2 #7F28B2 #B228A0
triadic
#7F28B2 #B27F28 #28B27F
tetradic
#7F28B2 #B23A28 #5BB228 #28A0B2
square
#7F28B2 #B23A28 #5BB228 #28A0B2
split-complementary
#7F28B2 #A0B228 #28B23A
monochromatic
#38124E #5B1D80 #7F28B2 #9F43D5 #B875E0

Accessibility & contrast

On white

7.37
#7F28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7F28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F28B2
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F28B2#FFFFFF#000000##FFFFFF
##7F28B21.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#774A6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f28b2;
/* rgb */ color: rgb(127, 40, 178);
/* oklch */ color: oklch(47.9% 0.206 309.1);
Tailwind
colors: {
  custom: {
    50: '#a96cca',
    500: '#7f28b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f28b2;
$custom-light: #a96cca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f28b2",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 277.826,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47861,
    "c": 0.20594,
    "h": 309.1
  },
  "luminance": 0.09244
}

Semantic roles & 50–950 ramp

primary
#7F28B2
secondary
#8FC76F
accent
#E6417E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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