#A238BB#A238BB

#A238BB is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.7% C 0.209 H 319.3°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#A238BB
RGBrgb(162, 56, 187)
HSLhsl(289, 54%, 48%)
HSVhsv(289, 70%, 73%)
CMYKcmyk(13.4%, 70.1%, 0%, 26.7%)
CIE-LABlab(44.37, 61.33, -48.54)
CIE-LCHlch(44.37, 78.21, 321.64°)
OKLaboklab(54.73% 0.1581 -0.136)
OKLCHoklch(54.73% 0.209 319.3)
XYZxyz(25.2829, 14.0988, 48.3937)
Luminance0.1410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238BB #51BB38
analogous
#6138BB #A238BB #BB3892
triadic
#A238BB #BBA238 #38BBA2
tetradic
#A238BB #BB6138 #51BB38 #3892BB
square
#A238BB #BB6138 #51BB38 #3892BB
split-complementary
#A238BB #92BB38 #38BB61
monochromatic
#501C5D #792A8C #A238BB #BA61D0 #CF90DE

Accessibility & contrast

On white

5.50
#A238BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#A238BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238BB
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238BB#FFFFFF#000000##FFFFFF
##A238BB1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#416CB8
Tritanopia (blue-blind)
#A25176
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #a238bb;
/* rgb */ color: rgb(162, 56, 187);
/* oklch */ color: oklch(54.7% 0.209 319.3);
Tailwind
colors: {
  custom: {
    50: '#c178d0',
    500: '#a238bb',
    950: '#000000',
  },
}
SCSS
$custom: #a238bb;
$custom-light: #c178d0;
$custom-dark: #000000;
JSON
{
  "hex": "#a238bb",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 288.55,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5473,
    "c": 0.20852,
    "h": 319.3
  },
  "luminance": 0.14098
}

Semantic roles & 50–950 ramp

primary
#A238BB
secondary
#93C886
accent
#DD4B67
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130914
muted
#827B82

Preview Lab

Preview with #A238BB

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

Preview Lab → · Contrast checker → · Palette generator →

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