#AF4BFA#AF4BFA

#AF4BFA is a light, highly saturated violet. Relative luminance 0.210; OKLCH L 62.6% C 0.249 H 306.6°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF4BFA
RGBrgb(175, 75, 250)
HSLhsl(274, 95%, 64%)
HSVhsv(274, 70%, 98%)
CMYKcmyk(30%, 70%, 0%, 2%)
CIE-LABlab(53.00, 69.12, -70.46)
CIE-LCHlch(53.00, 98.70, 314.45°)
OKLaboklab(62.56% 0.1484 -0.2)
OKLCHoklch(62.56% 0.249 306.6)
XYZxyz(37.4469, 21.0486, 92.5140)
Luminance0.2105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BFA #96FA4B
analogous
#574BFA #AF4BFA #FA4BED
triadic
#AF4BFA #FAAF4B #4BFAAF
tetradic
#AF4BFA #FA574B #96FA4B #4BEDFA
square
#AF4BFA #FA574B #96FA4B #4BEDFA
split-complementary
#AF4BFA #EDFA4B #4BFA57
monochromatic
#7305C5 #950FF8 #AF4BFA #C987FC #E4C2FD

Accessibility & contrast

On white

4.03
#AF4BFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#AF4BFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4BFA
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BFA#FFFFFF#000000##000000
##AF4BFA1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#007FF6
Tritanopia (blue-blind)
#A2739E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af4bfa;
/* rgb */ color: rgb(175, 75, 250);
/* oklch */ color: oklch(62.6% 0.249 306.6);
Tailwind
colors: {
  custom: {
    50: '#cc85fd',
    500: '#af4bfa',
    950: '#000000',
  },
}
SCSS
$custom: #af4bfa;
$custom-light: #cc85fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af4bfa",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 250
  },
  "hsl": {
    "h": 274.286,
    "s": 94.595,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62555,
    "c": 0.24909,
    "h": 306.6
  },
  "luminance": 0.21048
}

Semantic roles & 50–950 ramp

primary
#AF4BFA
secondary
#CCEFB2
accent
#E60062
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF4BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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