#AF4BE1#AF4BE1

#AF4BE1 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 60.9% C 0.225 H 312.2°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF4BE1
RGBrgb(175, 75, 225)
HSLhsl(280, 71%, 59%)
HSVhsv(280, 67%, 88%)
CMYKcmyk(22.2%, 66.7%, 0%, 11.8%)
CIE-LABlab(51.36, 63.82, -59.08)
CIE-LCHlch(51.36, 86.97, 317.21°)
OKLaboklab(60.86% 0.1512 -0.1666)
OKLCHoklch(60.86% 0.225 312.2)
XYZxyz(33.7834, 19.5833, 73.2199)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BE1 #7DE14B
analogous
#644BE1 #AF4BE1 #E14BC8
triadic
#AF4BE1 #E1AF4B #4BE1AF
tetradic
#AF4BE1 #E1644B #7DE14B #4BC8E1
square
#AF4BE1 #E1644B #7DE14B #4BC8E1
split-complementary
#AF4BE1 #C8E14B #4BE164
monochromatic
#6E1998 #9422CD #AF4BE1 #C67FEA #DEB4F2

Accessibility & contrast

On white

4.27
#AF4BE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#AF4BE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4BE1
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BE1#FFFFFF#000000##000000
##AF4BE11.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E5
Deuteranopia (green-blind)
#3D7CDE
Tritanopia (blue-blind)
#A96A90
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af4be1;
/* rgb */ color: rgb(175, 75, 225);
/* oklch */ color: oklch(60.9% 0.225 312.2);
Tailwind
colors: {
  custom: {
    50: '#cb84eb',
    500: '#af4be1',
    950: '#000000',
  },
}
SCSS
$custom: #af4be1;
$custom-light: #cb84eb;
$custom-dark: #000000;
JSON
{
  "hex": "#af4be1",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 225
  },
  "hsl": {
    "h": 280,
    "s": 71.429,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60864,
    "c": 0.22502,
    "h": 312.2
  },
  "luminance": 0.19582
}

Semantic roles & 50–950 ramp

primary
#AF4BE1
secondary
#BAE1A6
accent
#EE3A76
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4BE1

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

Preview Lab → · Contrast checker → · Palette generator →

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