#7F2DAF#7F2DAF

#7F2DAF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.198 H 309.6°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7F2DAF
RGBrgb(127, 45, 175)
HSLhsl(278, 59%, 43%)
HSVhsv(278, 74%, 69%)
CMYKcmyk(27.4%, 74.3%, 0%, 31.4%)
CIE-LABlab(36.90, 56.03, -53.76)
CIE-LCHlch(36.90, 77.65, 316.19°)
OKLaboklab(48.11% 0.126 -0.1524)
OKLCHoklch(48.11% 0.198 309.6)
XYZxyz(17.4271, 9.4843, 41.4617)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DAF #5DAF2D
analogous
#3E2DAF #7F2DAF #AF2D9E
triadic
#7F2DAF #AF7F2D #2DAF7F
tetradic
#7F2DAF #AF3E2D #5DAF2D #2D9EAF
square
#7F2DAF #AF3E2D #5DAF2D #2D9EAF
split-complementary
#7F2DAF #9EAF2D #2DAF3E
monochromatic
#38144E #5C207E #7F2DAF #9E49D0 #B87ADD

Accessibility & contrast

On white

7.25
#7F2DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7F2DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2DAF
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DAF#FFFFFF#000000##FFFFFF
##7F2DAF1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0958AC
Tritanopia (blue-blind)
#784B6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2daf;
/* rgb */ color: rgb(127, 45, 175);
/* oklch */ color: oklch(48.1% 0.198 309.6);
Tailwind
colors: {
  custom: {
    50: '#a96ec8',
    500: '#7f2daf',
    950: '#000000',
  },
}
SCSS
$custom: #7f2daf;
$custom-light: #a96ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2daf",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 277.846,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48108,
    "c": 0.19775,
    "h": 309.6
  },
  "luminance": 0.09484
}

Semantic roles & 50–950 ramp

primary
#7F2DAF
secondary
#91C573
accent
#E2467F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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