#7F41C8#7F41C8

#7F41C8 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.200 H 300.7°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#7F41C8
RGBrgb(127, 65, 200)
HSLhsl(268, 55%, 52%)
HSVhsv(268, 68%, 78%)
CMYKcmyk(36.5%, 67.5%, 0%, 21.6%)
CIE-LABlab(41.94, 52.83, -60.27)
CIE-LCHlch(41.94, 80.15, 311.24°)
OKLaboklab(52.27% 0.1018 -0.1716)
OKLCHoklch(52.27% 0.2 300.7)
XYZxyz(21.0655, 12.4626, 55.9281)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41C8 #8AC841
analogous
#4146C8 #7F41C8 #C341C8
triadic
#7F41C8 #C87F41 #41C87F
tetradic
#7F41C8 #C84146 #8AC841 #41C8C3
square
#7F41C8 #C84146 #8AC841 #41C8C3
split-complementary
#7F41C8 #C8C341 #46C841
monochromatic
#44206F #612E9E #7F41C8 #9F70D6 #BFA0E3

Accessibility & contrast

On white

6.01
#7F41C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F41C8
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41C8#FFFFFF#000000##FFFFFF
##7F41C81.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.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: #7f41c8;
/* rgb */ color: rgb(127, 65, 200);
/* oklch */ color: oklch(52.3% 0.200 300.7);
Tailwind
colors: {
  custom: {
    50: '#aa7ada',
    500: '#7f41c8',
    950: '#000000',
  },
}
SCSS
$custom: #7f41c8;
$custom-light: #aa7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41c8",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 267.556,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5227,
    "c": 0.19958,
    "h": 300.7
  },
  "luminance": 0.12463
}

Semantic roles & 50–950 ramp

primary
#7F41C8
secondary
#B5D095
accent
#DE499A
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7F41C8

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

Preview Lab → · Contrast checker → · Palette generator →

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