#7228AF#7228AF

#7228AF is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.9% C 0.200 H 304.3°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7228AF
RGBrgb(114, 40, 175)
HSLhsl(273, 63%, 42%)
HSVhsv(273, 77%, 69%)
CMYKcmyk(34.9%, 77.1%, 0%, 31.4%)
CIE-LABlab(34.38, 55.65, -57.94)
CIE-LCHlch(34.38, 80.33, 313.84°)
OKLaboklab(45.95% 0.1126 -0.1651)
OKLCHoklch(45.95% 0.2 304.3)
XYZxyz(15.4343, 8.1902, 41.3169)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228AF #65AF28
analogous
#2F28AF #7228AF #AF28A9
triadic
#7228AF #AF7228 #28AF72
tetradic
#7228AF #AF2F28 #65AF28 #28A9AF
square
#7228AF #AF2F28 #65AF28 #28A9AF
split-complementary
#7228AF #A9AF28 #28AF2F
monochromatic
#31114B #521D7D #7228AF #9141D4 #AE73DF

Accessibility & contrast

On white

7.96
#7228AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7228AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7228AF
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7228AF#FFFFFF#000000##FFFFFF
##7228AF1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#664B6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7228af;
/* rgb */ color: rgb(114, 40, 175);
/* oklch */ color: oklch(45.9% 0.200 304.3);
Tailwind
colors: {
  custom: {
    50: '#a06ac8',
    500: '#7228af',
    950: '#000000',
  },
}
SCSS
$custom: #7228af;
$custom-light: #a06ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#7228af",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 272.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45945,
    "c": 0.19984,
    "h": 304.3
  },
  "luminance": 0.0819
}

Semantic roles & 50–950 ramp

primary
#7228AF
secondary
#95C66D
accent
#E6428C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7228AF

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

Preview Lab → · Contrast checker → · Palette generator →

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