#7F3DCB#7F3DCB

#7F3DCB is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.208 H 300.5°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7F3DCB
RGBrgb(127, 61, 203)
HSLhsl(268, 58%, 52%)
HSVhsv(268, 70%, 80%)
CMYKcmyk(37.4%, 70%, 0%, 20.4%)
CIE-LABlab(41.47, 55.50, -62.78)
CIE-LCHlch(41.47, 83.79, 311.48°)
OKLaboklab(52% 0.1055 -0.179)
OKLCHoklch(52% 0.208 300.5)
XYZxyz(21.1980, 12.1611, 57.7189)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3DCB #89CB3D
analogous
#3D42CB #7F3DCB #C63DCB
triadic
#7F3DCB #CB7F3D #3DCB7F
tetradic
#7F3DCB #CB3D42 #89CB3D #3DCBC6
square
#7F3DCB #CB3D42 #89CB3D #3DCBC6
split-complementary
#7F3DCB #CBC63D #42CB3D
monochromatic
#441E70 #612BA0 #7F3DCB #9F6DD8 #BF9EE5

Accessibility & contrast

On white

6.12
#7F3DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7F3DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3DCB
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3DCB#FFFFFF#000000##FFFFFF
##7F3DCB1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#6E5F80
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f3dcb;
/* rgb */ color: rgb(127, 61, 203);
/* oklch */ color: oklch(52.0% 0.208 300.5);
Tailwind
colors: {
  custom: {
    50: '#aa78dc',
    500: '#7f3dcb',
    950: '#000000',
  },
}
SCSS
$custom: #7f3dcb;
$custom-light: #aa78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3dcb",
  "rgb": {
    "r": 127,
    "g": 61,
    "b": 203
  },
  "hsl": {
    "h": 267.887,
    "s": 57.724,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52004,
    "c": 0.20776,
    "h": 300.5
  },
  "luminance": 0.12161
}

Semantic roles & 50–950 ramp

primary
#7F3DCB
secondary
#B4D193
accent
#E14799
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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