#7F34CD#7F34CD

#7F34CD is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.2% C 0.220 H 301.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7F34CD
RGBrgb(127, 52, 205)
HSLhsl(269, 60%, 50%)
HSVhsv(269, 75%, 80%)
CMYKcmyk(38%, 74.6%, 0%, 19.6%)
CIE-LABlab(40.21, 59.99, -65.99)
CIE-LCHlch(40.21, 89.19, 312.27°)
OKLaboklab(51.16% 0.1135 -0.1884)
OKLCHoklch(51.16% 0.22 301.1)
XYZxyz(20.9971, 11.3756, 58.8353)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34CD #82CD34
analogous
#3435CD #7F34CD #CC34CD
triadic
#7F34CD #CD7F34 #34CD7F
tetradic
#7F34CD #CD3435 #82CD34 #34CDCC
square
#7F34CD #CD3435 #82CD34 #34CDCC
split-complementary
#7F34CD #CDCC34 #35CD34
monochromatic
#431B6C #61279D #7F34CD #9E65D9 #BD96E5

Accessibility & contrast

On white

6.41
#7F34CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7F34CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34CD
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34CD#FFFFFF#000000##FFFFFF
##7F34CD1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#6E5B7E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f34cd;
/* rgb */ color: rgb(127, 52, 205);
/* oklch */ color: oklch(51.2% 0.220 301.1);
Tailwind
colors: {
  custom: {
    50: '#ab73dd',
    500: '#7f34cd',
    950: '#000000',
  },
}
SCSS
$custom: #7f34cd;
$custom-light: #ab73dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34cd",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 205
  },
  "hsl": {
    "h": 269.412,
    "s": 60.474,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51157,
    "c": 0.21995,
    "h": 301.1
  },
  "luminance": 0.11376
}

Semantic roles & 50–950 ramp

primary
#7F34CD
secondary
#AFD18C
accent
#E44495
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F34CD

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

Preview Lab → · Contrast checker → · Palette generator →

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