#8242AF#8242AF

#8242AF is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.171 H 308.6°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8242AF
RGBrgb(130, 66, 175)
HSLhsl(275, 45%, 47%)
HSVhsv(275, 62%, 69%)
CMYKcmyk(25.7%, 62.3%, 0%, 31.4%)
CIE-LABlab(40.80, 46.98, -47.46)
CIE-LCHlch(40.80, 66.78, 314.71°)
OKLaboklab(50.99% 0.1068 -0.1339)
OKLCHoklch(50.99% 0.171 308.6)
XYZxyz(18.8904, 11.7377, 41.8196)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8242AF #6FAF42
analogous
#4B42AF #8242AF #AF42A6
triadic
#8242AF #AF8242 #42AF82
tetradic
#8242AF #AF4B42 #6FAF42 #42A6AF
square
#8242AF #AF4B42 #6FAF42 #42A6AF
split-complementary
#8242AF #A6AF42 #42AF4B
monochromatic
#402056 #613183 #8242AF #9F68C6 #BB95D7

Accessibility & contrast

On white

6.27
#8242AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8242AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8242AF
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8242AF#FFFFFF#000000##FFFFFF
##8242AF1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C5EB2
Deuteranopia (green-blind)
#3161AC
Tritanopia (blue-blind)
#7B5872
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8242af;
/* rgb */ color: rgb(130, 66, 175);
/* oklch */ color: oklch(51.0% 0.171 308.6);
Tailwind
colors: {
  custom: {
    50: '#aa7ac7',
    500: '#8242af',
    950: '#000000',
  },
}
SCSS
$custom: #8242af;
$custom-light: #aa7ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#8242af",
  "rgb": {
    "r": 130,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 275.229,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50986,
    "c": 0.17126,
    "h": 308.6
  },
  "luminance": 0.11737
}

Semantic roles & 50–950 ramp

primary
#8242AF
secondary
#A2C28A
accent
#D55389
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8242AF

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

Preview Lab → · Contrast checker → · Palette generator →

#8242AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva