#7D2FB8#7D2FB8

#7D2FB8 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.204 H 306.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7D2FB8
RGBrgb(125, 47, 184)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 74%, 72%)
CMYKcmyk(32.1%, 74.5%, 0%, 27.8%)
CIE-LABlab(37.58, 56.84, -58.00)
CIE-LCHlch(37.58, 81.21, 314.42°)
OKLaboklab(48.74% 0.1198 -0.1649)
OKLCHoklch(48.74% 0.204 306)
XYZxyz(18.1238, 9.8539, 46.2853)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2FB8 #6AB82F
analogous
#392FB8 #7D2FB8 #B82FAE
triadic
#7D2FB8 #B87D2F #2FB87D
tetradic
#7D2FB8 #B8392F #6AB82F #2FAEB8
square
#7D2FB8 #B8392F #6AB82F #2FAEB8
split-complementary
#7D2FB8 #AEB82F #2FB839
monochromatic
#3B1657 #5C2387 #7D2FB8 #9B52D3 #B782DF

Accessibility & contrast

On white

7.07
#7D2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7D2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2FB8
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2FB8#FFFFFF#000000##FFFFFF
##7D2FB81.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#725071
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d2fb8;
/* rgb */ color: rgb(125, 47, 184);
/* oklch */ color: oklch(48.7% 0.204 306.0);
Tailwind
colors: {
  custom: {
    50: '#a86fce',
    500: '#7d2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #7d2fb8;
$custom-light: #a86fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2fb8",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 274.161,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48739,
    "c": 0.20383,
    "h": 306
  },
  "luminance": 0.09854
}

Semantic roles & 50–950 ramp

primary
#7D2FB8
secondary
#9CC87B
accent
#E24589
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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