#AF5CE7#AF5CE7

#AF5CE7 is a light, highly saturated violet. Relative luminance 0.225; OKLCH L 63.3% C 0.208 H 309.2°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AF5CE7
RGBrgb(175, 92, 231)
HSLhsl(276, 74%, 63%)
HSVhsv(276, 60%, 91%)
CMYKcmyk(24.2%, 60.2%, 0%, 9.4%)
CIE-LABlab(54.59, 57.24, -57.27)
CIE-LCHlch(54.59, 80.97, 314.98°)
OKLaboklab(63.31% 0.1316 -0.1614)
OKLCHoklch(63.31% 0.208 309.2)
XYZxyz(35.9273, 22.5384, 78.0435)
Luminance0.2254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CE7 #94E75C
analogous
#695CE7 #AF5CE7 #E75CDA
triadic
#AF5CE7 #E7AF5C #5CE7AF
tetradic
#AF5CE7 #E7695C #94E75C #5CDAE7
square
#AF5CE7 #E7695C #94E75C #5CDAE7
split-complementary
#AF5CE7 #DAE75C #5CE769
monochromatic
#731AAF #9527DF #AF5CE7 #C991EF #E3C7F7

Accessibility & contrast

On white

3.81
#AF5CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#AF5CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CE7
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CE7#FFFFFF#000000##000000
##AF5CE71.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#207FEB
Deuteranopia (green-blind)
#4984E4
Tritanopia (blue-blind)
#A77799
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5ce7;
/* rgb */ color: rgb(175, 92, 231);
/* oklch */ color: oklch(63.3% 0.208 309.2);
Tailwind
colors: {
  custom: {
    50: '#ca8eef',
    500: '#af5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #af5ce7;
$custom-light: #ca8eef;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ce7",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 275.827,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.63314,
    "c": 0.20828,
    "h": 309.2
  },
  "luminance": 0.22538
}

Semantic roles & 50–950 ramp

primary
#AF5CE7
secondary
#CBE8B7
accent
#D60F5F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D16
muted
#827D84

Preview Lab

Preview with #AF5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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