#9271F8#9271F8

#9271F8 is a light, vivid violet. Relative luminance 0.247; OKLCH L 64.5% C 0.194 H 291.3°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9271F8
RGBrgb(146, 113, 248)
HSLhsl(255, 91%, 71%)
HSVhsv(255, 54%, 97%)
CMYKcmyk(41.1%, 54.4%, 0%, 2.7%)
CIE-LABlab(56.78, 43.64, -63.41)
CIE-LCHlch(56.78, 76.98, 304.54°)
OKLaboklab(64.55% 0.0702 -0.1803)
OKLCHoklch(64.55% 0.194 291.3)
XYZxyz(34.6978, 24.6975, 91.7277)
Luminance0.2470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9271F8 #D7F871
analogous
#7193F8 #9271F8 #D671F8
triadic
#9271F8 #F89271 #71F892
tetradic
#9271F8 #F87193 #D7F871 #71F8D6
square
#9271F8 #F87193 #D7F871 #71F8D6
split-complementary
#9271F8 #F8D671 #93F871
monochromatic
#400BE3 #6537F5 #9271F8 #BFABFB #E9E2FE

Accessibility & contrast

On white

3.54
#9271F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#9271F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9271F8
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9271F8#FFFFFF#000000##000000
##9271F81.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C8AFD
Deuteranopia (green-blind)
#3385F5
Tritanopia (blue-blind)
#768EAA
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9271f8;
/* rgb */ color: rgb(146, 113, 248);
/* oklch */ color: oklch(64.5% 0.194 291.3);
Tailwind
colors: {
  custom: {
    50: '#b79bfb',
    500: '#9271f8',
    950: '#000000',
  },
}
SCSS
$custom: #9271f8;
$custom-light: #b79bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#9271f8",
  "rgb": {
    "r": 146,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 254.667,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.6455,
    "c": 0.1935,
    "h": 291.3
  },
  "luminance": 0.24699
}

Semantic roles & 50–950 ramp

primary
#9271F8
secondary
#ECF5D0
accent
#E600AD
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9271F8

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

Preview Lab → · Contrast checker → · Palette generator →

#9271F8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva