#AF4BE2#AF4BE2

#AF4BE2 is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.9% C 0.226 H 312.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF4BE2
RGBrgb(175, 75, 226)
HSLhsl(280, 72%, 59%)
HSVhsv(280, 67%, 89%)
CMYKcmyk(22.6%, 66.8%, 0%, 11.4%)
CIE-LABlab(51.43, 64.03, -59.54)
CIE-LCHlch(51.43, 87.44, 317.08°)
OKLaboklab(60.93% 0.1512 -0.168)
OKLCHoklch(60.93% 0.226 312)
XYZxyz(33.9202, 19.6380, 73.9404)
Luminance0.1964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BE2 #7EE24B
analogous
#644BE2 #AF4BE2 #E24BCA
triadic
#AF4BE2 #E2AF4B #4BE2AF
tetradic
#AF4BE2 #E2644B #7EE24B #4BCAE2
square
#AF4BE2 #E2644B #7EE24B #4BCAE2
split-complementary
#AF4BE2 #CAE24B #4BE264
monochromatic
#6E199A #9421CF #AF4BE2 #C680EA #DEB4F3

Accessibility & contrast

On white

4.26
#AF4BE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AF4BE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4BE2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BE2#FFFFFF#000000##000000
##AF4BE21.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af4be2;
/* rgb */ color: rgb(175, 75, 226);
/* oklch */ color: oklch(60.9% 0.226 312.0);
Tailwind
colors: {
  custom: {
    50: '#cb84ec',
    500: '#af4be2',
    950: '#000000',
  },
}
SCSS
$custom: #af4be2;
$custom-light: #cb84ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af4be2",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 226
  },
  "hsl": {
    "h": 279.735,
    "s": 72.249,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60929,
    "c": 0.22599,
    "h": 312
  },
  "luminance": 0.19637
}

Semantic roles & 50–950 ramp

primary
#AF4BE2
secondary
#BBE2A7
accent
#EF3976
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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