#7F40CB#7F40CB

#7F40CB is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.204 H 300.1°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7F40CB
RGBrgb(127, 64, 203)
HSLhsl(267, 57%, 52%)
HSVhsv(267, 68%, 80%)
CMYKcmyk(37.4%, 68.5%, 0%, 20.4%)
CIE-LABlab(41.99, 54.07, -61.94)
CIE-LCHlch(41.99, 82.22, 311.12°)
OKLaboklab(52.37% 0.1025 -0.1765)
OKLCHoklch(52.37% 0.204 300.1)
XYZxyz(21.3626, 12.4904, 57.7737)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40CB #8CCB40
analogous
#4047CB #7F40CB #C440CB
triadic
#7F40CB #CB7F40 #40CB7F
tetradic
#7F40CB #CB4047 #8CCB40 #40CBC4
square
#7F40CB #CB4047 #8CCB40 #40CBC4
split-complementary
#7F40CB #CBC440 #47CB40
monochromatic
#441F72 #612CA2 #7F40CB #9F70D8 #BFA0E5

Accessibility & contrast

On white

6.00
#7F40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7F40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40CB
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40CB#FFFFFF#000000##FFFFFF
##7F40CB1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#0062C8
Tritanopia (blue-blind)
#6E6181
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f40cb;
/* rgb */ color: rgb(127, 64, 203);
/* oklch */ color: oklch(52.4% 0.204 300.1);
Tailwind
colors: {
  custom: {
    50: '#aa79dc',
    500: '#7f40cb',
    950: '#000000',
  },
}
SCSS
$custom: #7f40cb;
$custom-light: #aa79dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40cb",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 267.194,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5237,
    "c": 0.20412,
    "h": 300.1
  },
  "luminance": 0.12491
}

Semantic roles & 50–950 ramp

primary
#7F40CB
secondary
#B6D295
accent
#E0479B
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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