#A238BF#A238BF

#A238BF is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.0% C 0.212 H 318.1°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#A238BF
RGBrgb(162, 56, 191)
HSLhsl(287, 55%, 48%)
HSVhsv(287, 71%, 75%)
CMYKcmyk(15.2%, 70.7%, 0%, 25.1%)
CIE-LABlab(44.62, 62.10, -50.48)
CIE-LCHlch(44.62, 80.02, 320.89°)
OKLaboklab(54.98% 0.1578 -0.1417)
OKLCHoklch(54.98% 0.212 318.1)
XYZxyz(25.7171, 14.2725, 50.6803)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A238BF #55BF38
analogous
#5E38BF #A238BF #BF3898
triadic
#A238BF #BFA238 #38BFA2
tetradic
#A238BF #BF5E38 #55BF38 #3898BF
square
#A238BF #BF5E38 #55BF38 #3898BF
split-complementary
#A238BF #98BF38 #38BF5E
monochromatic
#521C60 #7A2A90 #A238BF #BA63D1 #CF92DF

Accessibility & contrast

On white

5.45
#A238BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#A238BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A238BF
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A238BF#FFFFFF#000000##FFFFFF
##A238BF1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#3E6DBC
Tritanopia (blue-blind)
#A15278
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a238bf;
/* rgb */ color: rgb(162, 56, 191);
/* oklch */ color: oklch(55.0% 0.212 318.1);
Tailwind
colors: {
  custom: {
    50: '#c178d3',
    500: '#a238bf',
    950: '#000000',
  },
}
SCSS
$custom: #a238bf;
$custom-light: #c178d3;
$custom-dark: #000000;
JSON
{
  "hex": "#a238bf",
  "rgb": {
    "r": 162,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 287.111,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.54985,
    "c": 0.21208,
    "h": 318.1
  },
  "luminance": 0.14271
}

Semantic roles & 50–950 ramp

primary
#A238BF
secondary
#97CA89
accent
#DE4A6A
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A238BF

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

Preview Lab → · Contrast checker → · Palette generator →

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