#A238CF#A238CF

#A238CF is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.226 H 313.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#A238CF
RGBrgb(162, 56, 207)
HSLhsl(282, 61%, 52%)
HSVhsv(282, 73%, 81%)
CMYKcmyk(21.7%, 72.9%, 0%, 18.8%)
CIE-LABlab(45.66, 65.24, -58.09)
CIE-LCHlch(45.66, 87.36, 318.32°)
OKLaboklab(56.05% 0.1561 -0.164)
OKLCHoklch(56.05% 0.226 313.6)
XYZxyz(27.5750, 15.0156, 60.4651)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238CF #65CF38
analogous
#5738CF #A238CF #CF38B1
triadic
#A238CF #CFA238 #38CFA2
tetradic
#A238CF #CF5738 #65CF38 #38B1CF
square
#A238CF #CF5738 #65CF38 #38B1CF
split-complementary
#A238CF #B1CF38 #38CF57
monochromatic
#581B71 #7E27A3 #A238CF #B969DB #D09BE7

Accessibility & contrast

On white

5.25
#A238CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#A238CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238CF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238CF#FFFFFF#000000##FFFFFF
##A238CF1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#2B6ECC
Tritanopia (blue-blind)
#9D5981
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a238cf;
/* rgb */ color: rgb(162, 56, 207);
/* oklch */ color: oklch(56.1% 0.226 313.6);
Tailwind
colors: {
  custom: {
    50: '#c279de',
    500: '#a238cf',
    950: '#000000',
  },
}
SCSS
$custom: #a238cf;
$custom-light: #c279de;
$custom-dark: #000000;
JSON
{
  "hex": "#a238cf",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 282.119,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56051,
    "c": 0.22643,
    "h": 313.6
  },
  "luminance": 0.15015
}

Semantic roles & 50–950 ramp

primary
#A238CF
secondary
#A4D390
accent
#E44473
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A238CF

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

Preview Lab → · Contrast checker → · Palette generator →

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