#7227A2#7227A2

#7227A2 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.8% C 0.188 H 308.2°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7227A2
RGBrgb(114, 39, 162)
HSLhsl(277, 61%, 39%)
HSVhsv(277, 76%, 64%)
CMYKcmyk(29.6%, 75.9%, 0%, 36.5%)
CIE-LABlab(33.22, 53.08, -52.02)
CIE-LCHlch(33.22, 74.32, 315.58°)
OKLaboklab(44.81% 0.1164 -0.1477)
OKLCHoklch(44.81% 0.188 308.2)
XYZxyz(14.1852, 7.6373, 34.9023)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227A2 #57A227
analogous
#3427A2 #7227A2 #A22795
triadic
#7227A2 #A27227 #27A272
tetradic
#7227A2 #A23427 #57A227 #2795A2
square
#7227A2 #A23427 #57A227 #2795A2
split-complementary
#7227A2 #95A227 #27A234
monochromatic
#2D0F3F #4F1B71 #7227A2 #9437CF #AE69DB

Accessibility & contrast

On white

8.31
#7227A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7227A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7227A2
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7227A2#FFFFFF#000000##FFFFFF
##7227A21.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#6A4563
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7227a2;
/* rgb */ color: rgb(114, 39, 162);
/* oklch */ color: oklch(44.8% 0.188 308.2);
Tailwind
colors: {
  custom: {
    50: '#9f69be',
    500: '#7227a2',
    950: '#000000',
  },
}
SCSS
$custom: #7227a2;
$custom-light: #9f69be;
$custom-dark: #000000;
JSON
{
  "hex": "#7227a2",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 276.585,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4481,
    "c": 0.18802,
    "h": 308.2
  },
  "luminance": 0.07637
}

Semantic roles & 50–950 ramp

primary
#7227A2
secondary
#88C164
accent
#E44382
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7227A2

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

Preview Lab → · Contrast checker → · Palette generator →

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