#7F41B2#7F41B2

#7F41B2 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.7% C 0.175 H 306.4°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7F41B2
RGBrgb(127, 65, 178)
HSLhsl(273, 47%, 48%)
HSVhsv(273, 63%, 70%)
CMYKcmyk(28.7%, 63.5%, 0%, 30.2%)
CIE-LABlab(40.42, 47.49, -49.85)
CIE-LCHlch(40.42, 68.85, 313.61°)
OKLaboklab(50.69% 0.1039 -0.141)
OKLCHoklch(50.69% 0.175 306.4)
XYZxyz(18.6769, 11.5072, 43.3480)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F41B2 #74B241
analogous
#4641B2 #7F41B2 #B241AD
triadic
#7F41B2 #B27F41 #41B27F
tetradic
#7F41B2 #B24641 #74B241 #41ADB2
square
#7F41B2 #B24641 #74B241 #41ADB2
split-complementary
#7F41B2 #ADB241 #41B246
monochromatic
#3F2058 #5F3185 #7F41B2 #9D68C8 #BA95D8

Accessibility & contrast

On white

6.36
#7F41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7F41B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F41B2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F41B2#FFFFFF#000000##FFFFFF
##7F41B21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#2960AF
Tritanopia (blue-blind)
#765873
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f41b2;
/* rgb */ color: rgb(127, 65, 178);
/* oklch */ color: oklch(50.7% 0.175 306.4);
Tailwind
colors: {
  custom: {
    50: '#a879ca',
    500: '#7f41b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f41b2;
$custom-light: #a879ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f41b2",
  "rgb": {
    "r": 127,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 272.92,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50694,
    "c": 0.17517,
    "h": 306.4
  },
  "luminance": 0.11507
}

Semantic roles & 50–950 ramp

primary
#7F41B2
secondary
#A5C48B
accent
#D6528D
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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