#AF58F2#AF58F2

#AF58F2 is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.5% C 0.225 H 307.1°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF58F2
RGBrgb(175, 88, 242)
HSLhsl(274, 86%, 65%)
HSVhsv(274, 64%, 95%)
CMYKcmyk(27.7%, 63.6%, 0%, 5.1%)
CIE-LABlab(54.56, 61.58, -63.49)
CIE-LCHlch(54.56, 88.45, 314.13°)
OKLaboklab(63.5% 0.1358 -0.1796)
OKLCHoklch(63.5% 0.225 307.1)
XYZxyz(37.1926, 22.5047, 86.3717)
Luminance0.2250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58F2 #9BF258
analogous
#6258F2 #AF58F2 #F258E8
triadic
#AF58F2 #F2AF58 #58F2AF
tetradic
#AF58F2 #F26258 #9BF258 #58E8F2
square
#AF58F2 #F26258 #9BF258 #58E8F2
split-complementary
#AF58F2 #E8F258 #58F262
monochromatic
#730FC1 #941FEE #AF58F2 #CA91F6 #E5CAFB

Accessibility & contrast

On white

3.82
#AF58F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#AF58F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58F2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58F2#FFFFFF#000000##000000
##AF58F21.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF7
Deuteranopia (green-blind)
#3883EF
Tritanopia (blue-blind)
#A4789D
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af58f2;
/* rgb */ color: rgb(175, 88, 242);
/* oklch */ color: oklch(63.5% 0.225 307.1);
Tailwind
colors: {
  custom: {
    50: '#cb8cf7',
    500: '#af58f2',
    950: '#000000',
  },
}
SCSS
$custom: #af58f2;
$custom-light: #cb8cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#af58f2",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 242
  },
  "hsl": {
    "h": 273.896,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.63503,
    "c": 0.22519,
    "h": 307.1
  },
  "luminance": 0.22504
}

Semantic roles & 50–950 ramp

primary
#AF58F2
secondary
#CFEDB8
accent
#E20364
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF58F2

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

Preview Lab → · Contrast checker → · Palette generator →

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