#7F41CA#7F41CA

#7F41CA is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.4% C 0.202 H 300.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7F41CA
RGBrgb(127, 65, 202)
HSLhsl(267, 56%, 52%)
HSVhsv(267, 68%, 79%)
CMYKcmyk(37.1%, 67.8%, 0%, 20.8%)
CIE-LABlab(42.09, 53.33, -61.20)
CIE-LCHlch(42.09, 81.17, 311.07°)
OKLaboklab(52.42% 0.1016 -0.1744)
OKLCHoklch(52.42% 0.202 300.2)
XYZxyz(21.3007, 12.5567, 57.1671)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41CA #8CCA41
analogous
#4148CA #7F41CA #C341CA
triadic
#7F41CA #CA7F41 #41CA7F
tetradic
#7F41CA #CA4148 #8CCA41 #41CAC3
square
#7F41CA #CA4148 #8CCA41 #41CAC3
split-complementary
#7F41CA #CAC341 #48CA41
monochromatic
#442071 #612DA1 #7F41CA #9F71D7 #BFA1E5

Accessibility & contrast

On white

5.98
#7F41CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7F41CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F41CA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41CA#FFFFFF#000000##FFFFFF
##7F41CA1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f41ca;
/* rgb */ color: rgb(127, 65, 202);
/* oklch */ color: oklch(52.4% 0.202 300.2);
Tailwind
colors: {
  custom: {
    50: '#aa7adb',
    500: '#7f41ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f41ca;
$custom-light: #aa7adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41ca",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 202
  },
  "hsl": {
    "h": 267.153,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5242,
    "c": 0.20179,
    "h": 300.2
  },
  "luminance": 0.12557
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F41CA

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

Preview Lab → · Contrast checker → · Palette generator →

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