#7F46CA#7F46CA

#7F46CA is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.1% C 0.195 H 299.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7F46CA
RGBrgb(127, 70, 202)
HSLhsl(266, 55%, 53%)
HSVhsv(266, 65%, 79%)
CMYKcmyk(37.1%, 65.3%, 0%, 20.8%)
CIE-LABlab(43.00, 50.82, -59.72)
CIE-LCHlch(43.00, 78.42, 310.40°)
OKLaboklab(53.07% 0.0962 -0.17)
OKLCHoklch(53.07% 0.195 299.5)
XYZxyz(21.6006, 13.1564, 57.2671)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46CA #91CA46
analogous
#464FCA #7F46CA #C146CA
triadic
#7F46CA #CA7F46 #46CA7F
tetradic
#7F46CA #CA464F #91CA46 #46CAC1
square
#7F46CA #CA464F #91CA46 #46CAC1
split-complementary
#7F46CA #CAC146 #4FCA46
monochromatic
#452174 #612FA4 #7F46CA #A076D8 #C1A5E5

Accessibility & contrast

On white

5.78
#7F46CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7F46CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46CA
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46CA#FFFFFF#000000##FFFFFF
##7F46CA1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#6E6482
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f46ca;
/* rgb */ color: rgb(127, 70, 202);
/* oklch */ color: oklch(53.1% 0.195 299.5);
Tailwind
colors: {
  custom: {
    50: '#a97ddb',
    500: '#7f46ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f46ca;
$custom-light: #a97ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46ca",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 202
  },
  "hsl": {
    "h": 265.909,
    "s": 55.462,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53074,
    "c": 0.19537,
    "h": 299.5
  },
  "luminance": 0.13157
}

Semantic roles & 50–950 ramp

primary
#7F46CA
secondary
#BAD29A
accent
#DF499E
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F46CA

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

Preview Lab → · Contrast checker → · Palette generator →

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