#7227AF#7227AF

#7227AF is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.8% C 0.201 H 304.4°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7227AF
RGBrgb(114, 39, 175)
HSLhsl(273, 64%, 42%)
HSVhsv(273, 78%, 69%)
CMYKcmyk(34.9%, 77.7%, 0%, 31.4%)
CIE-LABlab(34.24, 56.04, -58.16)
CIE-LCHlch(34.24, 80.77, 313.94°)
OKLaboklab(45.85% 0.1135 -0.1657)
OKLCHoklch(45.85% 0.201 304.4)
XYZxyz(15.4010, 8.1236, 41.3058)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227AF #64AF27
analogous
#2E27AF #7227AF #AF27A8
triadic
#7227AF #AF7227 #27AF72
tetradic
#7227AF #AF2E27 #64AF27 #27A8AF
square
#7227AF #AF2E27 #64AF27 #27A8AF
split-complementary
#7227AF #A8AF27 #27AF2E
monochromatic
#31114B #511C7D #7227AF #913FD4 #AE71DF

Accessibility & contrast

On white

8.00
#7227AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7227AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7227AF
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7227AF#FFFFFF#000000##FFFFFF
##7227AF1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#664A6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7227af;
/* rgb */ color: rgb(114, 39, 175);
/* oklch */ color: oklch(45.8% 0.201 304.4);
Tailwind
colors: {
  custom: {
    50: '#a06ac8',
    500: '#7227af',
    950: '#000000',
  },
}
SCSS
$custom: #7227af;
$custom-light: #a06ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#7227af",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 273.088,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45849,
    "c": 0.20085,
    "h": 304.4
  },
  "luminance": 0.08124
}

Semantic roles & 50–950 ramp

primary
#7227AF
secondary
#94C66B
accent
#E7418B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7227AF

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

Preview Lab → · Contrast checker → · Palette generator →

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