#7227B0#7227B0

#7227B0 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.9% C 0.202 H 304.1°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7227B0
RGBrgb(114, 39, 176)
HSLhsl(273, 64%, 42%)
HSVhsv(273, 78%, 69%)
CMYKcmyk(35.2%, 77.8%, 0%, 31%)
CIE-LABlab(34.32, 56.27, -58.63)
CIE-LCHlch(34.32, 81.26, 313.83°)
OKLaboklab(45.93% 0.1132 -0.1671)
OKLCHoklch(45.93% 0.202 304.1)
XYZxyz(15.4996, 8.1631, 41.8250)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227B0 #65B027
analogous
#2E27B0 #7227B0 #B027A9
triadic
#7227B0 #B07227 #27B072
tetradic
#7227B0 #B02E27 #65B027 #27A9B0
square
#7227B0 #B02E27 #65B027 #27A9B0
split-complementary
#7227B0 #A9B027 #27B02E
monochromatic
#31114C #521C7E #7227B0 #9140D5 #AE72E0

Accessibility & contrast

On white

7.98
#7227B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7227B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7227B0
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7227B0#FFFFFF#000000##FFFFFF
##7227B01.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7227b0;
/* rgb */ color: rgb(114, 39, 176);
/* oklch */ color: oklch(45.9% 0.202 304.1);
Tailwind
colors: {
  custom: {
    50: '#a06ac9',
    500: '#7227b0',
    950: '#000000',
  },
}
SCSS
$custom: #7227b0;
$custom-light: #a06ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#7227b0",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 272.847,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45931,
    "c": 0.20184,
    "h": 304.1
  },
  "luminance": 0.08163
}

Semantic roles & 50–950 ramp

primary
#7227B0
secondary
#95C76C
accent
#E7418C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7227B0

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

Preview Lab → · Contrast checker → · Palette generator →

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