#7271D2#7271D2

#7271D2 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.5% C 0.145 H 281.5°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7271D2
RGBrgb(114, 113, 210)
HSLhsl(241, 52%, 63%)
HSVhsv(241, 46%, 82%)
CMYKcmyk(45.7%, 46.2%, 0%, 17.6%)
CIE-LABlab(51.88, 25.50, -50.09)
CIE-LCHlch(51.88, 56.21, 296.98°)
OKLaboklab(59.52% 0.029 -0.1421)
OKLCHoklch(59.52% 0.145 281.5)
XYZxyz(24.4739, 20.0396, 63.5387)
Luminance0.2004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7271D2 #D1D271
analogous
#71A0D2 #7271D2 #A271D2
triadic
#7271D2 #D27271 #71D272
tetradic
#7271D2 #D271A0 #D1D271 #71D2A2
square
#7271D2 #D271A0 #D1D271 #71D2A2
split-complementary
#7271D2 #D2A271 #A0D271
monochromatic
#313098 #4443C3 #7271D2 #A09FE1 #CECEEF

Accessibility & contrast

On white

4.19
#7271D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7271D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7271D2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7271D2#FFFFFF#000000##000000
##7271D21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#497FD6
Deuteranopia (green-blind)
#4478D0
Tritanopia (blue-blind)
#528597
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7271d2;
/* rgb */ color: rgb(114, 113, 210);
/* oklch */ color: oklch(59.5% 0.145 281.5);
Tailwind
colors: {
  custom: {
    50: '#a099e0',
    500: '#7271d2',
    950: '#000000',
  },
}
SCSS
$custom: #7271d2;
$custom-light: #a099e0;
$custom-dark: #000000;
JSON
{
  "hex": "#7271d2",
  "rgb": {
    "r": 114,
    "g": 113,
    "b": 210
  },
  "hsl": {
    "h": 240.619,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59517,
    "c": 0.14499,
    "h": 281.5
  },
  "luminance": 0.20041
}

Semantic roles & 50–950 ramp

primary
#7271D2
secondary
#E0E1BE
accent
#BF26BE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7271D2

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

Preview Lab → · Contrast checker → · Palette generator →

#7271D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva