#AF3BF2#AF3BF2

#AF3BF2 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 60.5% C 0.259 H 309.4°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF3BF2
RGBrgb(175, 59, 242)
HSLhsl(278, 88%, 59%)
HSVhsv(278, 76%, 95%)
CMYKcmyk(27.7%, 75.6%, 0%, 5.1%)
CIE-LABlab(50.28, 73.60, -70.41)
CIE-LCHlch(50.28, 101.86, 316.27°)
OKLaboklab(60.45% 0.1641 -0.1998)
OKLCHoklch(60.45% 0.259 309.4)
XYZxyz(35.2669, 18.6534, 85.7298)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3BF2 #7EF23B
analogous
#543BF2 #AF3BF2 #F23BD9
triadic
#AF3BF2 #F2AF3B #3BF2AF
tetradic
#AF3BF2 #F2543B #7EF23B #3BD9F2
square
#AF3BF2 #F2543B #7EF23B #3BD9F2
split-complementary
#AF3BF2 #D9F23B #3BF254
monochromatic
#6E0BA7 #940FE1 #AF3BF2 #C674F6 #DEAEFA

Accessibility & contrast

On white

4.44
#AF3BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AF3BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF3BF2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3BF2#FFFFFF#000000##000000
##AF3BF21.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073F7
Deuteranopia (green-blind)
#0079EE
Tritanopia (blue-blind)
#A56895
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af3bf2;
/* rgb */ color: rgb(175, 59, 242);
/* oklch */ color: oklch(60.5% 0.259 309.4);
Tailwind
colors: {
  custom: {
    50: '#cd7df7',
    500: '#af3bf2',
    950: '#000000',
  },
}
SCSS
$custom: #af3bf2;
$custom-light: #cd7df7;
$custom-dark: #000000;
JSON
{
  "hex": "#af3bf2",
  "rgb": {
    "r": 175,
    "g": 59,
    "b": 242
  },
  "hsl": {
    "h": 278.033,
    "s": 87.56,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60454,
    "c": 0.25854,
    "h": 309.4
  },
  "luminance": 0.18653
}

Semantic roles & 50–950 ramp

primary
#AF3BF2
secondary
#BBE8A0
accent
#FE2A78
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF3BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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