#7228A3#7228A3

#7228A3 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 45.0% C 0.188 H 307.8°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7228A3
RGBrgb(114, 40, 163)
HSLhsl(276, 61%, 40%)
HSVhsv(276, 75%, 64%)
CMYKcmyk(30.1%, 75.5%, 0%, 36.1%)
CIE-LABlab(33.43, 52.90, -52.27)
CIE-LCHlch(33.43, 74.37, 315.34°)
OKLaboklab(44.99% 0.1152 -0.1484)
OKLCHoklch(44.99% 0.188 307.8)
XYZxyz(14.3077, 7.7395, 35.3834)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228A3 #59A328
analogous
#3528A3 #7228A3 #A32896
triadic
#7228A3 #A37228 #28A372
tetradic
#7228A3 #A33528 #59A328 #2896A3
square
#7228A3 #A33528 #59A328 #2896A3
split-complementary
#7228A3 #96A328 #28A335
monochromatic
#2D1041 #501C72 #7228A3 #933ACF #AE6BDB

Accessibility & contrast

On white

8.24
#7228A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7228A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7228A3
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7228A3#FFFFFF#000000##FFFFFF
##7228A31.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#6A4664
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7228a3;
/* rgb */ color: rgb(114, 40, 163);
/* oklch */ color: oklch(45.0% 0.188 307.8);
Tailwind
colors: {
  custom: {
    50: '#9f6abf',
    500: '#7228a3',
    950: '#000000',
  },
}
SCSS
$custom: #7228a3;
$custom-light: #9f6abf;
$custom-dark: #000000;
JSON
{
  "hex": "#7228a3",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 276.098,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44989,
    "c": 0.1879,
    "h": 307.8
  },
  "luminance": 0.07739
}

Semantic roles & 50–950 ramp

primary
#7228A3
secondary
#8AC166
accent
#E44484
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7228A3

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

Preview Lab → · Contrast checker → · Palette generator →

#7228A3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva