#7228B2#7228B2

#7228B2 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.2% C 0.203 H 303.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7228B2
RGBrgb(114, 40, 178)
HSLhsl(272, 63%, 43%)
HSVhsv(272, 78%, 70%)
CMYKcmyk(36%, 77.5%, 0%, 30.2%)
CIE-LABlab(34.62, 56.34, -59.33)
CIE-LCHlch(34.62, 81.82, 313.52°)
OKLaboklab(46.19% 0.1119 -0.1692)
OKLCHoklch(46.19% 0.203 303.5)
XYZxyz(15.7322, 8.3094, 42.8859)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228B2 #68B228
analogous
#2D28B2 #7228B2 #B228AD
triadic
#7228B2 #B27228 #28B272
tetradic
#7228B2 #B22D28 #68B228 #28ADB2
square
#7228B2 #B22D28 #68B228 #28ADB2
split-complementary
#7228B2 #ADB228 #28B22D
monochromatic
#32124E #521D80 #7228B2 #9143D5 #AE75E0

Accessibility & contrast

On white

7.89
#7228B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7228B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7228B2
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7228B2#FFFFFF#000000##FFFFFF
##7228B21.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#654C6C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7228b2;
/* rgb */ color: rgb(114, 40, 178);
/* oklch */ color: oklch(46.2% 0.203 303.5);
Tailwind
colors: {
  custom: {
    50: '#a16aca',
    500: '#7228b2',
    950: '#000000',
  },
}
SCSS
$custom: #7228b2;
$custom-light: #a16aca;
$custom-dark: #000000;
JSON
{
  "hex": "#7228b2",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 272.174,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46191,
    "c": 0.20282,
    "h": 303.5
  },
  "luminance": 0.08309
}

Semantic roles & 50–950 ramp

primary
#7228B2
secondary
#98C76F
accent
#E6418E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7228B2

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

Preview Lab → · Contrast checker → · Palette generator →

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