#AF4BE3#AF4BE3

#AF4BE3 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 61.0% C 0.227 H 311.7°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF4BE3
RGBrgb(175, 75, 227)
HSLhsl(279, 73%, 59%)
HSVhsv(279, 67%, 89%)
CMYKcmyk(22.9%, 67%, 0%, 11%)
CIE-LABlab(51.49, 64.24, -60.01)
CIE-LCHlch(51.49, 87.91, 316.95°)
OKLaboklab(60.99% 0.1511 -0.1693)
OKLCHoklch(60.99% 0.227 311.7)
XYZxyz(34.0579, 19.6930, 74.6652)
Luminance0.1969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BE3 #7FE34B
analogous
#634BE3 #AF4BE3 #E34BCB
triadic
#AF4BE3 #E3AF4B #4BE3AF
tetradic
#AF4BE3 #E3634B #7FE34B #4BCBE3
square
#AF4BE3 #E3634B #7FE34B #4BCBE3
split-complementary
#AF4BE3 #CBE34B #4BE363
monochromatic
#6F189B #9420D0 #AF4BE3 #C780EB #DEB5F3

Accessibility & contrast

On white

4.25
#AF4BE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#AF4BE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4BE3
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BE3#FFFFFF#000000##000000
##AF4BE31.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#3A7DE0
Tritanopia (blue-blind)
#A96A91
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4be3;
/* rgb */ color: rgb(175, 75, 227);
/* oklch */ color: oklch(61.0% 0.227 311.7);
Tailwind
colors: {
  custom: {
    50: '#cb84ed',
    500: '#af4be3',
    950: '#000000',
  },
}
SCSS
$custom: #af4be3;
$custom-light: #cb84ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af4be3",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 227
  },
  "hsl": {
    "h": 279.474,
    "s": 73.077,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60994,
    "c": 0.22695,
    "h": 311.7
  },
  "luminance": 0.19692
}

Semantic roles & 50–950 ramp

primary
#AF4BE3
secondary
#BCE3A7
accent
#F03877
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF4BE3

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

Preview Lab → · Contrast checker → · Palette generator →

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