#AF4FE0#AF4FE0

#AF4FE0 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.3% C 0.219 H 312.2°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AF4FE0
RGBrgb(175, 79, 224)
HSLhsl(280, 70%, 59%)
HSVhsv(280, 65%, 88%)
CMYKcmyk(21.9%, 64.7%, 0%, 12.2%)
CIE-LABlab(51.94, 61.85, -57.59)
CIE-LCHlch(51.94, 84.51, 317.04°)
OKLaboklab(61.26% 0.1469 -0.1623)
OKLCHoklch(61.26% 0.219 312.2)
XYZxyz(33.9273, 20.0886, 72.5968)
Luminance0.2009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FE0 #80E04F
analogous
#674FE0 #AF4FE0 #E04FC9
triadic
#AF4FE0 #E0AF4F #4FE0AF
tetradic
#AF4FE0 #E0674F #80E04F #4FC9E0
square
#AF4FE0 #E0674F #80E04F #4FC9E0
split-complementary
#AF4FE0 #C9E04F #4FE067
monochromatic
#6F1B9A #9424CE #AF4FE0 #C783E9 #DEB7F2

Accessibility & contrast

On white

4.19
#AF4FE0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#AF4FE0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FE0
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FE0#FFFFFF#000000##000000
##AF4FE01.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E4
Deuteranopia (green-blind)
#427EDD
Tritanopia (blue-blind)
#A96C91
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4fe0;
/* rgb */ color: rgb(175, 79, 224);
/* oklch */ color: oklch(61.3% 0.219 312.2);
Tailwind
colors: {
  custom: {
    50: '#cb86ea',
    500: '#af4fe0',
    950: '#000000',
  },
}
SCSS
$custom: #af4fe0;
$custom-light: #cb86ea;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fe0",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 224
  },
  "hsl": {
    "h": 279.724,
    "s": 70.048,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61257,
    "c": 0.21891,
    "h": 312.2
  },
  "luminance": 0.20088
}

Semantic roles & 50–950 ramp

primary
#AF4FE0
secondary
#BCE2A9
accent
#ED3B77
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4FE0

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

Preview Lab → · Contrast checker → · Palette generator →

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