#AF4CE3#AF4CE3

#AF4CE3 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 61.1% C 0.226 H 311.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF4CE3
RGBrgb(175, 76, 227)
HSLhsl(279, 73%, 59%)
HSVhsv(279, 67%, 89%)
CMYKcmyk(22.9%, 66.5%, 0%, 11%)
CIE-LABlab(51.64, 63.80, -59.76)
CIE-LCHlch(51.64, 87.42, 316.88°)
OKLaboklab(61.11% 0.15 -0.1686)
OKLCHoklch(61.11% 0.226 311.7)
XYZxyz(34.1262, 19.8298, 74.6880)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CE3 #80E34C
analogous
#644CE3 #AF4CE3 #E34CCB
triadic
#AF4CE3 #E3AF4C #4CE3AF
tetradic
#AF4CE3 #E3644C #80E34C #4CCBE3
square
#AF4CE3 #E3644C #80E34C #4CCBE3
split-complementary
#AF4CE3 #CBE34C #4CE364
monochromatic
#6F189C #9421D1 #AF4CE3 #C781EB #DEB6F4

Accessibility & contrast

On white

4.23
#AF4CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AF4CE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CE3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CE3#FFFFFF#000000##000000
##AF4CE31.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E7
Deuteranopia (green-blind)
#3C7DE0
Tritanopia (blue-blind)
#A96B92
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af4ce3;
/* rgb */ color: rgb(175, 76, 227);
/* oklch */ color: oklch(61.1% 0.226 311.7);
Tailwind
colors: {
  custom: {
    50: '#cb85ed',
    500: '#af4ce3',
    950: '#000000',
  },
}
SCSS
$custom: #af4ce3;
$custom-light: #cb85ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ce3",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 227
  },
  "hsl": {
    "h": 279.338,
    "s": 72.947,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61106,
    "c": 0.22569,
    "h": 311.7
  },
  "luminance": 0.19829
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF4CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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