#AF2BFB#AF2BFB

#AF2BFB is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 60.0% C 0.280 H 308.3°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF2BFB
RGBrgb(175, 43, 251)
HSLhsl(278, 96%, 58%)
HSVhsv(278, 83%, 98%)
CMYKcmyk(30.3%, 82.9%, 0%, 1.6%)
CIE-LABlab(49.26, 80.30, -77.10)
CIE-LCHlch(49.26, 111.32, 316.17°)
OKLaboklab(59.95% 0.1732 -0.2193)
OKLCHoklch(59.95% 0.28 308.3)
XYZxyz(35.9520, 17.8073, 92.7913)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BFB #77FB2B
analogous
#472BFB #AF2BFB #FB2BDF
triadic
#AF2BFB #FBAF2B #2BFBAF
tetradic
#AF2BFB #FB472B #77FB2B #2BDFFB
square
#AF2BFB #FB472B #77FB2B #2BDFFB
split-complementary
#AF2BFB #DFFB2B #2BFB47
monochromatic
#6C03A8 #9304E4 #AF2BFB #C667FC #DCA3FD

Accessibility & contrast

On white

4.60
#AF2BFB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AF2BFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BFB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BFB#FFFFFF#000000##FFFFFF
##AF2BFB1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071FF
Deuteranopia (green-blind)
#0076F7
Tritanopia (blue-blind)
#A36598
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af2bfb;
/* rgb */ color: rgb(175, 43, 251);
/* oklch */ color: oklch(60.0% 0.280 308.3);
Tailwind
colors: {
  custom: {
    50: '#ce77fe',
    500: '#af2bfb',
    950: '#000000',
  },
}
SCSS
$custom: #af2bfb;
$custom-light: #ce77fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af2bfb",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 251
  },
  "hsl": {
    "h": 278.077,
    "s": 96.296,
    "l": 57.647
  },
  "oklch": {
    "l": 0.59951,
    "c": 0.27952,
    "h": 308.3
  },
  "luminance": 0.17807
}

Semantic roles & 50–950 ramp

primary
#AF2BFB
secondary
#B6EB97
accent
#FF2977
background
#FDF7FF
surface
#FAEEFF
border
#D3C9D7
text
#150A18
muted
#837C86

Preview Lab

Preview with #AF2BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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