#B397FC#B397FC

#B397FC is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.2% C 0.145 H 295.4°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#B397FC
RGBrgb(179, 151, 252)
HSLhsl(257, 94%, 79%)
HSVhsv(257, 40%, 99%)
CMYKcmyk(29%, 40.1%, 0%, 1.2%)
CIE-LABlab(68.57, 31.51, -46.68)
CIE-LCHlch(68.57, 56.32, 304.01°)
OKLaboklab(74.16% 0.062 -0.1305)
OKLCHoklch(74.16% 0.145 295.4)
XYZxyz(47.2234, 38.7446, 97.0671)
Luminance0.3875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B397FC #E0FC97
analogous
#97AEFC #B397FC #E697FC
triadic
#B397FC #FCB397 #97FCB3
tetradic
#B397FC #FC97AE #E0FC97 #97FCE6
square
#B397FC #FC97AE #E0FC97 #97FCE6
split-complementary
#B397FC #FCE697 #AEFC97
monochromatic
#5C20F9 #885CFA #B397FC #DED2FE #E9E1FE

Accessibility & contrast

On white

2.40
#B397FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#B397FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B397FC
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B397FC#FFFFFF#000000##000000
##B397FC1.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA8FF
Deuteranopia (green-blind)
#7EA6F9
Tritanopia (blue-blind)
#A3A9BE
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b397fc;
/* rgb */ color: rgb(179, 151, 252);
/* oklch */ color: oklch(74.2% 0.145 295.4);
Tailwind
colors: {
  custom: {
    50: '#ccb6fe',
    500: '#b397fc',
    950: '#000000',
  },
}
SCSS
$custom: #b397fc;
$custom-light: #ccb6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#b397fc",
  "rgb": {
    "r": 179,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 256.634,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.74155,
    "c": 0.14454,
    "h": 295.4
  },
  "luminance": 0.38745
}

Semantic roles & 50–950 ramp

primary
#B397FC
secondary
#EDF6D5
accent
#E600A6
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086

Preview Lab

Preview with #B397FC

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

Preview Lab → · Contrast checker → · Palette generator →

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