#7827B5#7827B5

#7827B5 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.1% C 0.208 H 305.4°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7827B5
RGBrgb(120, 39, 181)
HSLhsl(274, 65%, 43%)
HSVhsv(274, 78%, 71%)
CMYKcmyk(33.7%, 78.5%, 0%, 29%)
CIE-LABlab(35.56, 58.43, -59.55)
CIE-LCHlch(35.56, 83.42, 314.46°)
OKLaboklab(47.1% 0.1205 -0.1696)
OKLCHoklch(47.1% 0.208 305.4)
XYZxyz(16.8099, 8.7804, 44.5163)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7827B5 #64B527
analogous
#3127B5 #7827B5 #B527AB
triadic
#7827B5 #B57827 #27B578
tetradic
#7827B5 #B53127 #64B527 #27ABB5
square
#7827B5 #B53127 #64B527 #27ABB5
split-complementary
#7827B5 #ABB527 #27B531
monochromatic
#351150 #571C83 #7827B5 #9743D6 #B375E1

Accessibility & contrast

On white

7.62
#7827B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7827B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7827B5
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7827B5#FFFFFF#000000##FFFFFF
##7827B51.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#6D4C6E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7827b5;
/* rgb */ color: rgb(120, 39, 181);
/* oklch */ color: oklch(47.1% 0.208 305.4);
Tailwind
colors: {
  custom: {
    50: '#a56bcc',
    500: '#7827b5',
    950: '#000000',
  },
}
SCSS
$custom: #7827b5;
$custom-light: #a56bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7827b5",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 181
  },
  "hsl": {
    "h": 274.225,
    "s": 64.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.471,
    "c": 0.20803,
    "h": 305.4
  },
  "luminance": 0.0878
}

Semantic roles & 50–950 ramp

primary
#7827B5
secondary
#96C96F
accent
#E84088
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7827B5

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

Preview Lab → · Contrast checker → · Palette generator →

#7827B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva