#7F46CB#7F46CB

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

Color values

HEX#7F46CB
RGBrgb(127, 70, 203)
HSLhsl(266, 56%, 54%)
HSVhsv(266, 66%, 80%)
CMYKcmyk(37.4%, 65.5%, 0%, 20.4%)
CIE-LABlab(43.07, 51.08, -60.18)
CIE-LCHlch(43.07, 78.94, 310.32°)
OKLaboklab(53.15% 0.0961 -0.1714)
OKLCHoklch(53.15% 0.197 299.3)
XYZxyz(21.7194, 13.2039, 57.8927)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46CB #92CB46
analogous
#464FCB #7F46CB #C146CB
triadic
#7F46CB #CB7F46 #46CB7F
tetradic
#7F46CB #CB464F #92CB46 #46CBC1
square
#7F46CB #CB464F #92CB46 #46CBC1
split-complementary
#7F46CB #CBC146 #4FCB46
monochromatic
#452176 #612EA5 #7F46CB #A076D8 #C1A6E6

Accessibility & contrast

On white

5.77
#7F46CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7F46CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46CB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46CB#FFFFFF#000000##FFFFFF
##7F46CB1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#0065C8
Tritanopia (blue-blind)
#6E6482
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f46cb;
/* rgb */ color: rgb(127, 70, 203);
/* oklch */ color: oklch(53.1% 0.197 299.3);
Tailwind
colors: {
  custom: {
    50: '#aa7ddc',
    500: '#7f46cb',
    950: '#000000',
  },
}
SCSS
$custom: #7f46cb;
$custom-light: #aa7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46cb",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 265.714,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53147,
    "c": 0.19651,
    "h": 299.3
  },
  "luminance": 0.13204
}

Semantic roles & 50–950 ramp

primary
#7F46CB
secondary
#BAD39A
accent
#DF489F
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F46CB

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

Preview Lab → · Contrast checker → · Palette generator →

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