#7D2FC8#7D2FC8

#7D2FC8 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.220 H 301.9°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7D2FC8
RGBrgb(125, 47, 200)
HSLhsl(271, 62%, 48%)
HSVhsv(271, 77%, 78%)
CMYKcmyk(37.5%, 76.5%, 0%, 21.6%)
CIE-LABlab(38.83, 60.53, -65.34)
CIE-LCHlch(38.83, 89.06, 312.81°)
OKLaboklab(50.01% 0.1162 -0.1865)
OKLCHoklch(50.01% 0.22 301.9)
XYZxyz(19.8968, 10.5631, 55.6230)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2FC8 #7AC82F
analogous
#302FC8 #7D2FC8 #C82FC6
triadic
#7D2FC8 #C87D2F #2FC87D
tetradic
#7D2FC8 #C8302F #7AC82F #2FC6C8
square
#7D2FC8 #C8302F #7AC82F #2FC6C8
split-complementary
#7D2FC8 #C6C82F #2FC830
monochromatic
#3F1865 #5E2396 #7D2FC8 #9B5CD9 #BA8DE4

Accessibility & contrast

On white

6.75
#7D2FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7D2FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D2FC8
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2FC8#FFFFFF#000000##FFFFFF
##7D2FC81.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#6D577A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7d2fc8;
/* rgb */ color: rgb(125, 47, 200);
/* oklch */ color: oklch(50.0% 0.220 301.9);
Tailwind
colors: {
  custom: {
    50: '#a970da',
    500: '#7d2fc8',
    950: '#000000',
  },
}
SCSS
$custom: #7d2fc8;
$custom-light: #a970da;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2fc8",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 270.588,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50014,
    "c": 0.21972,
    "h": 301.9
  },
  "luminance": 0.10563
}

Semantic roles & 50–950 ramp

primary
#7D2FC8
secondary
#A9CF84
accent
#E54392
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7D2FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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