#AF4FE3#AF4FE3

#AF4FE3 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.4% C 0.222 H 311.4°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AF4FE3
RGBrgb(175, 79, 227)
HSLhsl(279, 73%, 60%)
HSVhsv(279, 65%, 89%)
CMYKcmyk(22.9%, 65.2%, 0%, 11%)
CIE-LABlab(52.12, 62.48, -58.99)
CIE-LCHlch(52.12, 85.93, 316.65°)
OKLaboklab(61.45% 0.1468 -0.1664)
OKLCHoklch(61.45% 0.222 311.4)
XYZxyz(34.3377, 20.2528, 74.7585)
Luminance0.2025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FE3 #83E34F
analogous
#654FE3 #AF4FE3 #E34FCD
triadic
#AF4FE3 #E3AF4F #4FE3AF
tetradic
#AF4FE3 #E3654F #83E34F #4FCDE3
square
#AF4FE3 #E3654F #83E34F #4FCDE3
split-complementary
#AF4FE3 #CDE34F #4FE365
monochromatic
#70199E #9522D3 #AF4FE3 #C784EB #DFB9F4

Accessibility & contrast

On white

4.16
#AF4FE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#AF4FE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FE3
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FE3#FFFFFF#000000##000000
##AF4FE31.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E7
Deuteranopia (green-blind)
#3F7EE0
Tritanopia (blue-blind)
#A96D92
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4fe3;
/* rgb */ color: rgb(175, 79, 227);
/* oklch */ color: oklch(61.4% 0.222 311.4);
Tailwind
colors: {
  custom: {
    50: '#cb87ec',
    500: '#af4fe3',
    950: '#000000',
  },
}
SCSS
$custom: #af4fe3;
$custom-light: #cb87ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fe3",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 227
  },
  "hsl": {
    "h": 278.919,
    "s": 72.549,
    "l": 60
  },
  "oklch": {
    "l": 0.61449,
    "c": 0.22185,
    "h": 311.4
  },
  "luminance": 0.20252
}

Semantic roles & 50–950 ramp

primary
#AF4FE3
secondary
#BEE3AA
accent
#EF3979
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF4FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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