#7227B3#7227B3

#7227B3 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.2% C 0.205 H 303.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7227B3
RGBrgb(114, 39, 179)
HSLhsl(272, 64%, 43%)
HSVhsv(272, 78%, 70%)
CMYKcmyk(36.3%, 78.2%, 0%, 29.8%)
CIE-LABlab(34.57, 56.96, -60.01)
CIE-LCHlch(34.57, 82.74, 313.51°)
OKLaboklab(46.18% 0.1124 -0.1712)
OKLCHoklch(46.18% 0.205 303.3)
XYZxyz(15.7997, 8.2831, 43.4055)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227B3 #68B327
analogous
#2C27B3 #7227B3 #B327AE
triadic
#7227B3 #B37227 #27B372
tetradic
#7227B3 #B32C27 #68B327 #27AEB3
square
#7227B3 #B32C27 #68B327 #27AEB3
split-complementary
#7227B3 #AEB327 #27B32C
monochromatic
#32114E #521C81 #7227B3 #9141D6 #AE74E1

Accessibility & contrast

On white

7.90
#7227B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7227B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7227B3
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7227B3#FFFFFF#000000##FFFFFF
##7227B31.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#654C6D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7227b3;
/* rgb */ color: rgb(114, 39, 179);
/* oklch */ color: oklch(46.2% 0.205 303.3);
Tailwind
colors: {
  custom: {
    50: '#a16acb',
    500: '#7227b3',
    950: '#000000',
  },
}
SCSS
$custom: #7227b3;
$custom-light: #a16acb;
$custom-dark: #000000;
JSON
{
  "hex": "#7227b3",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 272.143,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46179,
    "c": 0.20481,
    "h": 303.3
  },
  "luminance": 0.08283
}

Semantic roles & 50–950 ramp

primary
#7227B3
secondary
#98C86E
accent
#E7418E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7227B3

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

Preview Lab → · Contrast checker → · Palette generator →

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