#AF5CE2#AF5CE2

#AF5CE2 is a light, highly saturated violet. Relative luminance 0.223; OKLCH L 63.0% C 0.203 H 310.4°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AF5CE2
RGBrgb(175, 92, 226)
HSLhsl(277, 70%, 62%)
HSVhsv(277, 59%, 89%)
CMYKcmyk(22.6%, 59.3%, 0%, 11.4%)
CIE-LABlab(54.30, 56.14, -54.93)
CIE-LCHlch(54.30, 78.55, 315.63°)
OKLaboklab(63.01% 0.1317 -0.1545)
OKLCHoklch(63.01% 0.203 310.4)
XYZxyz(35.2312, 22.2600, 74.3774)
Luminance0.2226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CE2 #8FE25C
analogous
#6C5CE2 #AF5CE2 #E25CD2
triadic
#AF5CE2 #E2AF5C #5CE2AF
tetradic
#AF5CE2 #E26C5C #8FE25C #5CD2E2
square
#AF5CE2 #E26C5C #8FE25C #5CD2E2
split-complementary
#AF5CE2 #D2E25C #5CE26C
monochromatic
#721EA6 #9528D9 #AF5CE2 #C890EB #E2C4F4

Accessibility & contrast

On white

3.85
#AF5CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#AF5CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CE2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CE2#FFFFFF#000000##000000
##AF5CE21.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#297EE6
Deuteranopia (green-blind)
#4E83DF
Tritanopia (blue-blind)
#A87596
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5ce2;
/* rgb */ color: rgb(175, 92, 226);
/* oklch */ color: oklch(63.0% 0.203 310.4);
Tailwind
colors: {
  custom: {
    50: '#ca8eec',
    500: '#af5ce2',
    950: '#000000',
  },
}
SCSS
$custom: #af5ce2;
$custom-light: #ca8eec;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ce2",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 226
  },
  "hsl": {
    "h": 277.164,
    "s": 69.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63008,
    "c": 0.20303,
    "h": 310.4
  },
  "luminance": 0.22259
}

Semantic roles & 50–950 ramp

primary
#AF5CE2
secondary
#C7E5B4
accent
#D2145C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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