#7D2CBA#7D2CBA

#7D2CBA is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.209 H 305.7°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7D2CBA
RGBrgb(125, 44, 186)
HSLhsl(274, 62%, 45%)
HSVhsv(274, 76%, 73%)
CMYKcmyk(32.8%, 76.3%, 0%, 27.1%)
CIE-LABlab(37.31, 58.50, -59.62)
CIE-LCHlch(37.31, 83.53, 314.46°)
OKLaboklab(48.6% 0.122 -0.1697)
OKLCHoklch(48.6% 0.209 305.7)
XYZxyz(18.2191, 9.7067, 47.3586)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2CBA #69BA2C
analogous
#362CBA #7D2CBA #BA2CB0
triadic
#7D2CBA #BA7D2C #2CBA7D
tetradic
#7D2CBA #BA362C #69BA2C #2CB0BA
square
#7D2CBA #BA362C #69BA2C #2CB0BA
split-complementary
#7D2CBA #B0BA2C #2CBA36
monochromatic
#3A1557 #5C2089 #7D2CBA #9B4ED5 #B780E1

Accessibility & contrast

On white

7.14
#7D2CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7D2CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2CBA
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2CBA#FFFFFF#000000##FFFFFF
##7D2CBA1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#725072
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d2cba;
/* rgb */ color: rgb(125, 44, 186);
/* oklch */ color: oklch(48.6% 0.209 305.7);
Tailwind
colors: {
  custom: {
    50: '#a86ed0',
    500: '#7d2cba',
    950: '#000000',
  },
}
SCSS
$custom: #7d2cba;
$custom-light: #a86ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2cba",
  "rgb": {
    "r": 125,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 274.225,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48598,
    "c": 0.209,
    "h": 305.7
  },
  "luminance": 0.09707
}

Semantic roles & 50–950 ramp

primary
#7D2CBA
secondary
#9BCA78
accent
#E54389
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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