#7E45CF#7E45CF

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

Color values

HEX#7E45CF
RGBrgb(126, 69, 207)
HSLhsl(265, 59%, 54%)
HSVhsv(265, 67%, 81%)
CMYKcmyk(39.1%, 66.7%, 0%, 18.8%)
CIE-LABlab(43.06, 52.40, -62.52)
CIE-LCHlch(43.06, 81.57, 309.97°)
OKLaboklab(53.21% 0.0953 -0.1783)
OKLCHoklch(53.21% 0.202 298.1)
XYZxyz(21.9919, 13.1965, 60.4079)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E45CF #96CF45
analogous
#4551CF #7E45CF #C345CF
triadic
#7E45CF #CF7E45 #45CF7E
tetradic
#7E45CF #CF4551 #96CF45 #45CFC3
square
#7E45CF #CF4551 #96CF45 #45CFC3
split-complementary
#7E45CF #CFC345 #51CF45
monochromatic
#45207A #602CAB #7E45CF #A076DC #C1A6E8

Accessibility & contrast

On white

5.77
#7E45CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7E45CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E45CF
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E45CF#FFFFFF#000000##FFFFFF
##7E45CF1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0064CC
Tritanopia (blue-blind)
#6B6584
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e45cf;
/* rgb */ color: rgb(126, 69, 207);
/* oklch */ color: oklch(53.2% 0.202 298.1);
Tailwind
colors: {
  custom: {
    50: '#a97cdf',
    500: '#7e45cf',
    950: '#000000',
  },
}
SCSS
$custom: #7e45cf;
$custom-light: #a97cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e45cf",
  "rgb": {
    "r": 126,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 264.783,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53205,
    "c": 0.20218,
    "h": 298.1
  },
  "luminance": 0.13197
}

Semantic roles & 50–950 ramp

primary
#7E45CF
secondary
#BDD59B
accent
#E246A2
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E45CF

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

Preview Lab → · Contrast checker → · Palette generator →

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