#7227BD#7227BD

#7227BD is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.215 H 300.7°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7227BD
RGBrgb(114, 39, 189)
HSLhsl(270, 66%, 45%)
HSVhsv(270, 79%, 74%)
CMYKcmyk(39.7%, 79.4%, 0%, 25.9%)
CIE-LABlab(35.40, 59.30, -64.56)
CIE-LCHlch(35.40, 87.66, 312.57°)
OKLaboklab(47.02% 0.1097 -0.1845)
OKLCHoklch(47.02% 0.215 300.7)
XYZxyz(16.8480, 8.7024, 48.9264)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227BD #72BD27
analogous
#2727BD #7227BD #BD27BD
triadic
#7227BD #BD7227 #27BD72
tetradic
#7227BD #BD2727 #72BD27 #27BDBD
square
#7227BD #BD2727 #72BD27 #27BDBD
split-complementary
#7227BD #BDBD27 #27BD27
monochromatic
#351258 #531D8A #7227BD #9148D9 #AF7BE4

Accessibility & contrast

On white

7.66
#7227BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7227BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7227BD
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7227BD#FFFFFF#000000##FFFFFF
##7227BD1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#615072
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7227bd;
/* rgb */ color: rgb(114, 39, 189);
/* oklch */ color: oklch(47.0% 0.215 300.7);
Tailwind
colors: {
  custom: {
    50: '#a26bd2',
    500: '#7227bd',
    950: '#000000',
  },
}
SCSS
$custom: #7227bd;
$custom-light: #a26bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7227bd",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 270,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47024,
    "c": 0.21467,
    "h": 300.7
  },
  "luminance": 0.08703
}

Semantic roles & 50–950 ramp

primary
#7227BD
secondary
#A0CC74
accent
#E93F94
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7227BD

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

Preview Lab → · Contrast checker → · Palette generator →

#7227BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva