#7F40C8#7F40C8

#7F40C8 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.201 H 300.8°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7F40C8
RGBrgb(127, 64, 200)
HSLhsl(268, 55%, 52%)
HSVhsv(268, 68%, 78%)
CMYKcmyk(36.5%, 68%, 0%, 21.6%)
CIE-LABlab(41.77, 53.32, -60.56)
CIE-LCHlch(41.77, 80.69, 311.37°)
OKLaboklab(52.14% 0.1029 -0.1725)
OKLCHoklch(52.14% 0.201 300.8)
XYZxyz(21.0086, 12.3488, 55.9091)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F40C8 #89C840
analogous
#4045C8 #7F40C8 #C340C8
triadic
#7F40C8 #C87F40 #40C87F
tetradic
#7F40C8 #C84045 #89C840 #40C8C3
square
#7F40C8 #C84045 #89C840 #40C8C3
split-complementary
#7F40C8 #C8C340 #45C840
monochromatic
#44206E #612D9D #7F40C8 #9F70D6 #BF9FE3

Accessibility & contrast

On white

6.05
#7F40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7F40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F40C8
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F40C8#FFFFFF#000000##FFFFFF
##7F40C81.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#0062C5
Tritanopia (blue-blind)
#6F607F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f40c8;
/* rgb */ color: rgb(127, 64, 200);
/* oklch */ color: oklch(52.1% 0.201 300.8);
Tailwind
colors: {
  custom: {
    50: '#aa79da',
    500: '#7f40c8',
    950: '#000000',
  },
}
SCSS
$custom: #7f40c8;
$custom-light: #aa79da;
$custom-dark: #000000;
JSON
{
  "hex": "#7f40c8",
  "rgb": {
    "r": 127,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 267.794,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52144,
    "c": 0.20084,
    "h": 300.8
  },
  "luminance": 0.12349
}

Semantic roles & 50–950 ramp

primary
#7F40C8
secondary
#B4D094
accent
#DF4999
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7F40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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