#AF4BE9#AF4BE9

#AF4BE9 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.4% C 0.233 H 310.3°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AF4BE9
RGBrgb(175, 75, 233)
HSLhsl(278, 78%, 60%)
HSVhsv(278, 68%, 91%)
CMYKcmyk(24.9%, 67.8%, 0%, 8.6%)
CIE-LABlab(51.87, 65.49, -62.77)
CIE-LCHlch(51.87, 90.72, 316.21°)
OKLaboklab(61.39% 0.1505 -0.1775)
OKLCHoklch(61.39% 0.233 310.3)
XYZxyz(34.9004, 20.0301, 79.1027)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BE9 #85E94B
analogous
#604BE9 #AF4BE9 #E94BD4
triadic
#AF4BE9 #E9AF4B #4BE9AF
tetradic
#AF4BE9 #E9604B #85E94B #4BD4E9
square
#AF4BE9 #E9604B #85E94B #4BD4E9
split-complementary
#AF4BE9 #D4E94B #4BE960
monochromatic
#7014A5 #951BDC #AF4BE9 #C782F0 #DFB8F6

Accessibility & contrast

On white

4.20
#AF4BE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#AF4BE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4BE9
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BE9#FFFFFF#000000##000000
##AF4BE91.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EE
Deuteranopia (green-blind)
#327DE6
Tritanopia (blue-blind)
#A76D94
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4be9;
/* rgb */ color: rgb(175, 75, 233);
/* oklch */ color: oklch(61.4% 0.233 310.3);
Tailwind
colors: {
  custom: {
    50: '#cb84f1',
    500: '#af4be9',
    950: '#000000',
  },
}
SCSS
$custom: #af4be9;
$custom-light: #cb84f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af4be9",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 233
  },
  "hsl": {
    "h": 277.975,
    "s": 78.218,
    "l": 60.392
  },
  "oklch": {
    "l": 0.6139,
    "c": 0.23272,
    "h": 310.3
  },
  "luminance": 0.20029
}

Semantic roles & 50–950 ramp

primary
#AF4BE9
secondary
#C0E6AA
accent
#DA0B57
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF4BE9

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

Preview Lab → · Contrast checker → · Palette generator →

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