#AF4CE2#AF4CE2

#AF4CE2 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 61.0% C 0.225 H 311.9°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF4CE2
RGBrgb(175, 76, 226)
HSLhsl(280, 72%, 59%)
HSVhsv(280, 66%, 89%)
CMYKcmyk(22.6%, 66.4%, 0%, 11.4%)
CIE-LABlab(51.58, 63.60, -59.29)
CIE-LCHlch(51.58, 86.95, 317.01°)
OKLaboklab(61.04% 0.1501 -0.1672)
OKLCHoklch(61.04% 0.225 311.9)
XYZxyz(33.9886, 19.7747, 73.9632)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CE2 #7FE24C
analogous
#644CE2 #AF4CE2 #E24CCA
triadic
#AF4CE2 #E2AF4C #4CE2AF
tetradic
#AF4CE2 #E2644C #7FE24C #4CCAE2
square
#AF4CE2 #E2644C #7FE24C #4CCAE2
split-complementary
#AF4CE2 #CAE24C #4CE264
monochromatic
#6F199B #9422CF #AF4CE2 #C781EB #DEB5F3

Accessibility & contrast

On white

4.24
#AF4CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AF4CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CE2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CE2#FFFFFF#000000##000000
##AF4CE21.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E6
Deuteranopia (green-blind)
#3D7DDF
Tritanopia (blue-blind)
#A96B91
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4ce2;
/* rgb */ color: rgb(175, 76, 226);
/* oklch */ color: oklch(61.0% 0.225 311.9);
Tailwind
colors: {
  custom: {
    50: '#cb85ec',
    500: '#af4ce2',
    950: '#000000',
  },
}
SCSS
$custom: #af4ce2;
$custom-light: #cb85ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ce2",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 226
  },
  "hsl": {
    "h": 279.6,
    "s": 72.115,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61041,
    "c": 0.22472,
    "h": 311.9
  },
  "luminance": 0.19774
}

Semantic roles & 50–950 ramp

primary
#AF4CE2
secondary
#BCE2A8
accent
#EF3977
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4CE2

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

Preview Lab → · Contrast checker → · Palette generator →

#AF4CE2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva