#AF4CE7#AF4CE7

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

Color values

HEX#AF4CE7
RGBrgb(175, 76, 231)
HSLhsl(278, 76%, 60%)
HSVhsv(278, 67%, 91%)
CMYKcmyk(24.2%, 67.1%, 0%, 9.4%)
CIE-LABlab(51.90, 64.64, -61.61)
CIE-LCHlch(51.90, 89.30, 316.38°)
OKLaboklab(61.37% 0.1497 -0.174)
OKLCHoklch(61.37% 0.23 310.7)
XYZxyz(34.6847, 20.0531, 77.6293)
Luminance0.2005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CE7 #84E74C
analogous
#624CE7 #AF4CE7 #E74CD1
triadic
#AF4CE7 #E7AF4C #4CE7AF
tetradic
#AF4CE7 #E7624C #84E74C #4CD1E7
square
#AF4CE7 #E7624C #84E74C #4CD1E7
split-complementary
#AF4CE7 #D1E74C #4CE762
monochromatic
#7016A3 #951DD9 #AF4CE7 #C782EE #DFB8F5

Accessibility & contrast

On white

4.19
#AF4CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4CE7#FFFFFF#000000##000000
##AF4CE71.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EC
Deuteranopia (green-blind)
#367DE4
Tritanopia (blue-blind)
#A86D94
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4ce7;
/* rgb */ color: rgb(175, 76, 231);
/* oklch */ color: oklch(61.4% 0.230 310.7);
Tailwind
colors: {
  custom: {
    50: '#cb85ef',
    500: '#af4ce7',
    950: '#000000',
  },
}
SCSS
$custom: #af4ce7;
$custom-light: #cb85ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ce7",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 231
  },
  "hsl": {
    "h": 278.323,
    "s": 76.355,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61368,
    "c": 0.22955,
    "h": 310.7
  },
  "luminance": 0.20052
}

Semantic roles & 50–950 ramp

primary
#AF4CE7
secondary
#BFE5AA
accent
#D90D57
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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