#AF4CEB#AF4CEB

#AF4CEB is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.6% C 0.233 H 309.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF4CEB
RGBrgb(175, 76, 235)
HSLhsl(277, 80%, 61%)
HSVhsv(277, 68%, 92%)
CMYKcmyk(25.5%, 67.7%, 0%, 7.8%)
CIE-LABlab(52.15, 65.49, -63.44)
CIE-LCHlch(52.15, 91.18, 315.91°)
OKLaboklab(61.63% 0.1493 -0.1794)
OKLCHoklch(61.63% 0.233 309.8)
XYZxyz(35.2561, 20.2817, 80.6387)
Luminance0.2028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CEB #88EB4C
analogous
#5F4CEB #AF4CEB #EB4CD8
triadic
#AF4CEB #EBAF4C #4CEBAF
tetradic
#AF4CEB #EB5F4C #88EB4C #4CD8EB
square
#AF4CEB #EB5F4C #88EB4C #4CD8EB
split-complementary
#AF4CEB #D8EB4C #4CEB5F
monochromatic
#7113AA #9519E1 #AF4CEB #C883F1 #E0BAF7

Accessibility & contrast

On white

4.15
#AF4CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AF4CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CEB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CEB#FFFFFF#000000##000000
##AF4CEB1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#317EE7
Tritanopia (blue-blind)
#A76E96
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4ceb;
/* rgb */ color: rgb(175, 76, 235);
/* oklch */ color: oklch(61.6% 0.233 309.8);
Tailwind
colors: {
  custom: {
    50: '#cb85f2',
    500: '#af4ceb',
    950: '#000000',
  },
}
SCSS
$custom: #af4ceb;
$custom-light: #cb85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ceb",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 235
  },
  "hsl": {
    "h": 277.358,
    "s": 79.899,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61634,
    "c": 0.23342,
    "h": 309.8
  },
  "luminance": 0.20281
}

Semantic roles & 50–950 ramp

primary
#AF4CEB
secondary
#C2E7AB
accent
#DC0959
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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