#7D27B2#7D27B2

#7D27B2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.5% C 0.206 H 308.4°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7D27B2
RGBrgb(125, 39, 178)
HSLhsl(277, 64%, 43%)
HSVhsv(277, 78%, 70%)
CMYKcmyk(29.8%, 78.1%, 0%, 30.2%)
CIE-LABlab(36.03, 58.63, -56.96)
CIE-LCHlch(36.03, 81.74, 315.83°)
OKLaboklab(47.51% 0.1281 -0.1618)
OKLCHoklch(47.51% 0.206 308.4)
XYZxyz(17.2172, 9.0256, 42.9460)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D27B2 #5CB227
analogous
#3727B2 #7D27B2 #B227A2
triadic
#7D27B2 #B27D27 #27B27D
tetradic
#7D27B2 #B23727 #5CB227 #27A2B2
square
#7D27B2 #B23727 #5CB227 #27A2B2
split-complementary
#7D27B2 #A2B227 #27B237
monochromatic
#36114E #5A1C80 #7D27B2 #9D41D5 #B773E0

Accessibility & contrast

On white

7.49
#7D27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7D27B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D27B2
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D27B2#FFFFFF#000000##FFFFFF
##7D27B21.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#754A6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d27b2;
/* rgb */ color: rgb(125, 39, 178);
/* oklch */ color: oklch(47.5% 0.206 308.4);
Tailwind
colors: {
  custom: {
    50: '#a86bca',
    500: '#7d27b2',
    950: '#000000',
  },
}
SCSS
$custom: #7d27b2;
$custom-light: #a86bca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d27b2",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 277.122,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47508,
    "c": 0.20639,
    "h": 308.4
  },
  "luminance": 0.09025
}

Semantic roles & 50–950 ramp

primary
#7D27B2
secondary
#90C86D
accent
#E74180
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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