#7F50CA#7F50CA

#7F50CA is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.5% C 0.182 H 297.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7F50CA
RGBrgb(127, 80, 202)
HSLhsl(263, 54%, 55%)
HSVhsv(263, 60%, 79%)
CMYKcmyk(37.1%, 60.4%, 0%, 20.8%)
CIE-LABlab(44.96, 45.53, -56.55)
CIE-LCHlch(44.96, 72.60, 308.84°)
OKLaboklab(54.5% 0.0848 -0.1607)
OKLCHoklch(54.5% 0.182 297.8)
XYZxyz(22.2790, 14.5133, 57.4932)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F50CA #9BCA50
analogous
#505ECA #7F50CA #BC50CA
triadic
#7F50CA #CA7F50 #50CA7F
tetradic
#7F50CA #CA505E #9BCA50 #50CABC
square
#7F50CA #CA505E #9BCA50 #50CABC
split-complementary
#7F50CA #CABC50 #5ECA50
monochromatic
#46257A #6133A9 #7F50CA #A17FD8 #C4AEE6

Accessibility & contrast

On white

5.38
#7F50CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7F50CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F50CA
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F50CA#FFFFFF#000000##FFFFFF
##7F50CA1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#1D69C7
Tritanopia (blue-blind)
#6E6A85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f50ca;
/* rgb */ color: rgb(127, 80, 202);
/* oklch */ color: oklch(54.5% 0.182 297.8);
Tailwind
colors: {
  custom: {
    50: '#a983db',
    500: '#7f50ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f50ca;
$custom-light: #a983db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f50ca",
  "rgb": {
    "r": 127,
    "g": 80,
    "b": 202
  },
  "hsl": {
    "h": 263.115,
    "s": 53.509,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54496,
    "c": 0.18176,
    "h": 297.8
  },
  "luminance": 0.14514
}

Semantic roles & 50–950 ramp

primary
#7F50CA
secondary
#C1D4A1
accent
#DD4BA5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F50CA

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

Preview Lab → · Contrast checker → · Palette generator →

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