#7F41CB#7F41CB

#7F41CB is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.5% C 0.203 H 300.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7F41CB
RGBrgb(127, 65, 203)
HSLhsl(267, 57%, 53%)
HSVhsv(267, 68%, 80%)
CMYKcmyk(37.4%, 68%, 0%, 20.4%)
CIE-LABlab(42.16, 53.58, -61.66)
CIE-LCHlch(42.16, 81.68, 310.99°)
OKLaboklab(52.5% 0.1014 -0.1757)
OKLCHoklch(52.5% 0.203 300)
XYZxyz(21.4195, 12.6042, 57.7927)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41CB #8DCB41
analogous
#4148CB #7F41CB #C441CB
triadic
#7F41CB #CB7F41 #41CB7F
tetradic
#7F41CB #CB4148 #8DCB41 #41CBC4
square
#7F41CB #CB4148 #8DCB41 #41CBC4
split-complementary
#7F41CB #CBC441 #48CB41
monochromatic
#451F72 #612CA2 #7F41CB #9F71D8 #C0A1E5

Accessibility & contrast

On white

5.96
#7F41CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7F41CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F41CB
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41CB#FFFFFF#000000##FFFFFF
##7F41CB1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#0062C8
Tritanopia (blue-blind)
#6E6181
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f41cb;
/* rgb */ color: rgb(127, 65, 203);
/* oklch */ color: oklch(52.5% 0.203 300.0);
Tailwind
colors: {
  custom: {
    50: '#aa7adc',
    500: '#7f41cb',
    950: '#000000',
  },
}
SCSS
$custom: #7f41cb;
$custom-light: #aa7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41cb",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 203
  },
  "hsl": {
    "h": 266.957,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52496,
    "c": 0.20288,
    "h": 300
  },
  "luminance": 0.12604
}

Semantic roles & 50–950 ramp

primary
#7F41CB
secondary
#B7D296
accent
#E0489C
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F41CB

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

Preview Lab → · Contrast checker → · Palette generator →

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