#AF4BE4#AF4BE4

#AF4BE4 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 61.1% C 0.228 H 311.5°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF4BE4
RGBrgb(175, 75, 228)
HSLhsl(279, 74%, 59%)
HSVhsv(279, 67%, 89%)
CMYKcmyk(23.2%, 67.1%, 0%, 10.6%)
CIE-LABlab(51.55, 64.45, -60.47)
CIE-LCHlch(51.55, 88.38, 316.82°)
OKLaboklab(61.06% 0.151 -0.1707)
OKLCHoklch(61.06% 0.228 311.5)
XYZxyz(34.1963, 19.7484, 75.3942)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BE4 #80E44B
analogous
#634BE4 #AF4BE4 #E44BCC
triadic
#AF4BE4 #E4AF4B #4BE4AF
tetradic
#AF4BE4 #E4634B #80E44B #4BCCE4
square
#AF4BE4 #E4634B #80E44B #4BCCE4
split-complementary
#AF4BE4 #CCE44B #4BE463
monochromatic
#6F189D #9420D2 #AF4BE4 #C780EC #DEB5F4

Accessibility & contrast

On white

4.24
#AF4BE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AF4BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4BE4
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BE4#FFFFFF#000000##000000
##AF4BE41.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E9
Deuteranopia (green-blind)
#397DE1
Tritanopia (blue-blind)
#A86B92
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4be4;
/* rgb */ color: rgb(175, 75, 228);
/* oklch */ color: oklch(61.1% 0.228 311.5);
Tailwind
colors: {
  custom: {
    50: '#cb84ed',
    500: '#af4be4',
    950: '#000000',
  },
}
SCSS
$custom: #af4be4;
$custom-light: #cb84ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af4be4",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 228
  },
  "hsl": {
    "h": 279.216,
    "s": 73.913,
    "l": 59.412
  },
  "oklch": {
    "l": 0.6106,
    "c": 0.2279,
    "h": 311.5
  },
  "luminance": 0.19748
}

Semantic roles & 50–950 ramp

primary
#AF4BE4
secondary
#BCE3A8
accent
#F13777
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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