#A397F2#A397F2

#A397F2 is a light, vivid blue. Relative luminance 0.363; OKLCH L 72.3% C 0.130 H 288.7°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#A397F2
RGBrgb(163, 151, 242)
HSLhsl(248, 78%, 77%)
HSVhsv(248, 38%, 95%)
CMYKcmyk(32.6%, 37.6%, 0%, 5.1%)
CIE-LABlab(66.77, 24.65, -44.13)
CIE-LCHlch(66.77, 50.55, 299.19°)
OKLaboklab(72.32% 0.0419 -0.1235)
OKLCHoklch(72.32% 0.13 288.7)
XYZxyz(42.1937, 36.3295, 88.7764)
Luminance0.3633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A397F2 #E6F297
analogous
#97B9F2 #A397F2 #D197F2
triadic
#A397F2 #F2A397 #97F2A3
tetradic
#A397F2 #F297B9 #E6F297 #97F2D1
square
#A397F2 #F297B9 #E6F297 #97F2D1
split-complementary
#A397F2 #F2D197 #B9F297
monochromatic
#432AE4 #7361EB #A397F2 #D3CDF9 #E7E4FC

Accessibility & contrast

On white

2.54
#A397F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#A397F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A397F2
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A397F2#FFFFFF#000000##000000
##A397F21.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA4F6
Deuteranopia (green-blind)
#7BA0F0
Tritanopia (blue-blind)
#90A8B9
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #a397f2;
/* rgb */ color: rgb(163, 151, 242);
/* oklch */ color: oklch(72.3% 0.130 288.7);
Tailwind
colors: {
  custom: {
    50: '#c0b5f6',
    500: '#a397f2',
    950: '#000000',
  },
}
SCSS
$custom: #a397f2;
$custom-light: #c0b5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#a397f2",
  "rgb": {
    "r": 163,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 247.912,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.72315,
    "c": 0.13041,
    "h": 288.7
  },
  "luminance": 0.36331
}

Semantic roles & 50–950 ramp

primary
#A397F2
secondary
#F0F3D8
accent
#DA0BBF
background
#FCFBFF
surface
#F8F6FE
border
#D1D0D6
text
#121117
muted
#818085

Preview Lab

Preview with #A397F2

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

Preview Lab → · Contrast checker → · Palette generator →

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