#7F40CA#7F40CA

#7F40CA is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.203 H 300.4°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#7F40CA
RGBrgb(127, 64, 202)
HSLhsl(267, 57%, 52%)
HSVhsv(267, 68%, 79%)
CMYKcmyk(37.1%, 68.3%, 0%, 20.8%)
CIE-LABlab(41.91, 53.82, -61.48)
CIE-LCHlch(41.91, 81.71, 311.20°)
OKLaboklab(52.29% 0.1026 -0.1752)
OKLCHoklch(52.29% 0.203 300.4)
XYZxyz(21.2438, 12.4429, 57.1482)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40CA #8BCA40
analogous
#4046CA #7F40CA #C440CA
triadic
#7F40CA #CA7F40 #40CA7F
tetradic
#7F40CA #CA4046 #8BCA40 #40CAC4
square
#7F40CA #CA4046 #8BCA40 #40CAC4
split-complementary
#7F40CA #CAC440 #46CA40
monochromatic
#441F70 #612CA0 #7F40CA #9F70D7 #BFA0E5

Accessibility & contrast

On white

6.02
#7F40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7F40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40CA
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40CA#FFFFFF#000000##FFFFFF
##7F40CA1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0062C7
Tritanopia (blue-blind)
#6E6180
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f40ca;
/* rgb */ color: rgb(127, 64, 202);
/* oklch */ color: oklch(52.3% 0.203 300.4);
Tailwind
colors: {
  custom: {
    50: '#aa79db',
    500: '#7f40ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f40ca;
$custom-light: #aa79db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40ca",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 267.391,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52294,
    "c": 0.20303,
    "h": 300.4
  },
  "luminance": 0.12443
}

Semantic roles & 50–950 ramp

primary
#7F40CA
secondary
#B6D195
accent
#E0489B
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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