#AF5CFA#AF5CFA

#AF5CFA is a light, highly saturated violet. Relative luminance 0.237; OKLCH L 64.5% C 0.228 H 305.0°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#AF5CFA
RGBrgb(175, 92, 250)
HSLhsl(272, 94%, 67%)
HSVhsv(272, 63%, 98%)
CMYKcmyk(30%, 63.2%, 0%, 2%)
CIE-LABlab(55.76, 61.48, -66.01)
CIE-LCHlch(55.76, 90.20, 312.97°)
OKLaboklab(64.53% 0.1308 -0.187)
OKLCHoklch(64.53% 0.228 305)
XYZxyz(38.7578, 23.6706, 92.9510)
Luminance0.2367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CFA #A7FA5C
analogous
#605CFA #AF5CFA #FA5CF6
triadic
#AF5CFA #FAAF5C #5CFAAF
tetradic
#AF5CFA #FA605C #A7FA5C #5CF6FA
square
#AF5CFA #FA605C #A7FA5C #5CF6FA
split-complementary
#AF5CFA #F6FA5C #5CFA60
monochromatic
#7307D5 #9221F8 #AF5CFA #CC97FC #E9D3FE

Accessibility & contrast

On white

3.66
#AF5CFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#AF5CFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CFA
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CFA#FFFFFF#000000##000000
##AF5CFA1.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#3286F6
Tritanopia (blue-blind)
#A27EA3
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af5cfa;
/* rgb */ color: rgb(175, 92, 250);
/* oklch */ color: oklch(64.5% 0.228 305.0);
Tailwind
colors: {
  custom: {
    50: '#cc8ffd',
    500: '#af5cfa',
    950: '#000000',
  },
}
SCSS
$custom: #af5cfa;
$custom-light: #cc8ffd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5cfa",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 250
  },
  "hsl": {
    "h": 271.519,
    "s": 94.048,
    "l": 67.059
  },
  "oklch": {
    "l": 0.64528,
    "c": 0.22827,
    "h": 305
  },
  "luminance": 0.2367
}

Semantic roles & 50–950 ramp

primary
#AF5CFA
secondary
#D8F2C0
accent
#E6006D
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#140D18
muted
#837E86

Preview Lab

Preview with #AF5CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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