#AF7BFA#AF7BFA

#AF7BFA is a light, vivid violet. Relative luminance 0.302; OKLCH L 69.0% C 0.184 H 300.6°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#AF7BFA
RGBrgb(175, 123, 250)
HSLhsl(265, 93%, 73%)
HSVhsv(265, 51%, 98%)
CMYKcmyk(30%, 50.8%, 0%, 2%)
CIE-LABlab(61.81, 45.49, -56.31)
CIE-LCHlch(61.81, 72.38, 308.93°)
OKLaboklab(68.96% 0.0937 -0.1587)
OKLCHoklch(68.96% 0.184 300.6)
XYZxyz(42.0134, 30.1818, 94.0362)
Luminance0.3018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BFA #C6FA7B
analogous
#7B86FA #AF7BFA #EF7BFA
triadic
#AF7BFA #FAAF7B #7BFAAF
tetradic
#AF7BFA #FA7B86 #C6FA7B #7BFAEF
square
#AF7BFA #FA7B86 #C6FA7B #7BFAEF
split-complementary
#AF7BFA #FAEF7B #86FA7B
monochromatic
#6809F1 #8B40F8 #AF7BFA #D3B6FC #EDE2FE

Accessibility & contrast

On white

2.98
#AF7BFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#AF7BFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7BFA
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BFA#FFFFFF#000000##000000
##AF7BFA1.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F95FE
Deuteranopia (green-blind)
#5D95F7
Tritanopia (blue-blind)
#A093AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7bfa;
/* rgb */ color: rgb(175, 123, 250);
/* oklch */ color: oklch(69.0% 0.184 300.6);
Tailwind
colors: {
  custom: {
    50: '#caa2fc',
    500: '#af7bfa',
    950: '#000000',
  },
}
SCSS
$custom: #af7bfa;
$custom-light: #caa2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bfa",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 250
  },
  "hsl": {
    "h": 264.567,
    "s": 92.701,
    "l": 73.137
  },
  "oklch": {
    "l": 0.68964,
    "c": 0.18425,
    "h": 300.6
  },
  "luminance": 0.30182
}

Semantic roles & 50–950 ramp

primary
#AF7BFA
secondary
#E8F6D5
accent
#E60088
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF7BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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