#7F38CD#7F38CD

#7F38CD is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.6% C 0.216 H 300.6°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7F38CD
RGBrgb(127, 56, 205)
HSLhsl(269, 60%, 51%)
HSVhsv(269, 73%, 80%)
CMYKcmyk(38%, 72.7%, 0%, 19.6%)
CIE-LABlab(40.81, 58.27, -65.00)
CIE-LCHlch(40.81, 87.30, 311.87°)
OKLaboklab(51.58% 0.1099 -0.1855)
OKLCHoklch(51.58% 0.216 300.6)
XYZxyz(21.1833, 11.7480, 58.8973)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38CD #86CD38
analogous
#383BCD #7F38CD #CA38CD
triadic
#7F38CD #CD7F38 #38CD7F
tetradic
#7F38CD #CD383B #86CD38 #38CDCA
square
#7F38CD #CD383B #86CD38 #38CDCA
split-complementary
#7F38CD #CDCA38 #3BCD38
monochromatic
#431C6F #6128A0 #7F38CD #9E69D9 #BE9AE6

Accessibility & contrast

On white

6.27
#7F38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7F38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38CD
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38CD#FFFFFF#000000##FFFFFF
##7F38CD1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#6D5D7F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f38cd;
/* rgb */ color: rgb(127, 56, 205);
/* oklch */ color: oklch(51.6% 0.216 300.6);
Tailwind
colors: {
  custom: {
    50: '#ab75dd',
    500: '#7f38cd',
    950: '#000000',
  },
}
SCSS
$custom: #7f38cd;
$custom-light: #ab75dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38cd",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 268.591,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51584,
    "c": 0.21563,
    "h": 300.6
  },
  "luminance": 0.11748
}

Semantic roles & 50–950 ramp

primary
#7F38CD
secondary
#B2D18F
accent
#E34598
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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