#7F45CE#7F45CE

#7F45CE is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.2% C 0.201 H 298.8°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7F45CE
RGBrgb(127, 69, 206)
HSLhsl(265, 58%, 54%)
HSVhsv(265, 67%, 81%)
CMYKcmyk(38.3%, 66.5%, 0%, 19.2%)
CIE-LABlab(43.10, 52.34, -61.87)
CIE-LCHlch(43.10, 81.04, 310.23°)
OKLaboklab(53.24% 0.0968 -0.1763)
OKLCHoklch(53.24% 0.201 298.8)
XYZxyz(22.0183, 13.2242, 59.7730)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F45CE #94CE45
analogous
#4550CE #7F45CE #C345CE
triadic
#7F45CE #CE7F45 #45CE7F
tetradic
#7F45CE #CE4550 #94CE45 #45CEC3
square
#7F45CE #CE4550 #94CE45 #45CEC3
split-complementary
#7F45CE #CEC345 #50CE45
monochromatic
#452079 #612DA9 #7F45CE #A075DB #C2A6E8

Accessibility & contrast

On white

5.76
#7F45CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#7F45CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F45CE
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F45CE#FFFFFF#000000##FFFFFF
##7F45CE1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#0064CB
Tritanopia (blue-blind)
#6D6584
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f45ce;
/* rgb */ color: rgb(127, 69, 206);
/* oklch */ color: oklch(53.2% 0.201 298.8);
Tailwind
colors: {
  custom: {
    50: '#aa7cde',
    500: '#7f45ce',
    950: '#000000',
  },
}
SCSS
$custom: #7f45ce;
$custom-light: #aa7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#7f45ce",
  "rgb": {
    "r": 127,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 265.401,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53237,
    "c": 0.20118,
    "h": 298.8
  },
  "luminance": 0.13225
}

Semantic roles & 50–950 ramp

primary
#7F45CE
secondary
#BCD59A
accent
#E246A0
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7F45CE

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

Preview Lab → · Contrast checker → · Palette generator →

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