#AF5EDC#AF5EDC

#AF5EDC is a light, vivid violet. Relative luminance 0.223; OKLCH L 62.9% C 0.194 H 311.8°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AF5EDC
RGBrgb(175, 94, 220)
HSLhsl(279, 64%, 62%)
HSVhsv(279, 57%, 86%)
CMYKcmyk(20.5%, 57.3%, 0%, 13.7%)
CIE-LABlab(54.33, 53.85, -51.50)
CIE-LCHlch(54.33, 74.51, 316.28°)
OKLaboklab(62.92% 0.1291 -0.1445)
OKLCHoklch(62.92% 0.194 311.8)
XYZxyz(34.5978, 22.2875, 70.1756)
Luminance0.2229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EDC #8BDC5E
analogous
#705EDC #AF5EDC #DC5ECA
triadic
#AF5EDC #DCAF5E #5EDCAF
tetradic
#AF5EDC #DC705E #8BDC5E #5ECADC
square
#AF5EDC #DC705E #8BDC5E #5ECADC
split-complementary
#AF5EDC #CADC5E #5EDC70
monochromatic
#71229D #962DD0 #AF5EDC #C890E7 #E1C3F2

Accessibility & contrast

On white

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

On black

5.46
#AF5EDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EDC
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EDC#FFFFFF#000000##000000
##AF5EDC1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#367EE0
Deuteranopia (green-blind)
#5584D9
Tritanopia (blue-blind)
#AA7494
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af5edc;
/* rgb */ color: rgb(175, 94, 220);
/* oklch */ color: oklch(62.9% 0.194 311.8);
Tailwind
colors: {
  custom: {
    50: '#ca8fe7',
    500: '#af5edc',
    950: '#000000',
  },
}
SCSS
$custom: #af5edc;
$custom-light: #ca8fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#af5edc",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 220
  },
  "hsl": {
    "h": 278.571,
    "s": 64.286,
    "l": 61.569
  },
  "oklch": {
    "l": 0.62919,
    "c": 0.19378,
    "h": 311.8
  },
  "luminance": 0.22287
}

Semantic roles & 50–950 ramp

primary
#AF5EDC
secondary
#C4E2B3
accent
#CC1959
background
#FCF9FE
surface
#F9F1FC
border
#D2CBD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF5EDC

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

Preview Lab → · Contrast checker → · Palette generator →

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