#7271E7#7271E7

#7271E7 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.8% C 0.174 H 280.3°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7271E7
RGBrgb(114, 113, 231)
HSLhsl(241, 71%, 67%)
HSVhsv(241, 51%, 91%)
CMYKcmyk(50.6%, 51.1%, 0%, 9.4%)
CIE-LABlab(53.12, 31.82, -59.96)
CIE-LCHlch(53.12, 67.88, 297.96°)
OKLaboklab(60.85% 0.031 -0.171)
OKLCHoklch(60.85% 0.174 280.3)
XYZxyz(27.2639, 21.1556, 78.2326)
Luminance0.2116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7271E7 #E6E771
analogous
#71ABE7 #7271E7 #AD71E7
triadic
#7271E7 #E77271 #71E772
tetradic
#7271E7 #E771AB #E6E771 #71E7AD
square
#7271E7 #E771AB #E6E771 #71E7AD
split-complementary
#7271E7 #E7AD71 #ABE771
monochromatic
#2120BE #3E3DDE #7271E7 #A6A5F0 #DADAF9

Accessibility & contrast

On white

4.01
#7271E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#7271E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7271E7
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7271E7#FFFFFF#000000##000000
##7271E71.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3583EB
Deuteranopia (green-blind)
#297AE4
Tritanopia (blue-blind)
#438BA1
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7271e7;
/* rgb */ color: rgb(114, 113, 231);
/* oklch */ color: oklch(60.8% 0.174 280.3);
Tailwind
colors: {
  custom: {
    50: '#a299ef',
    500: '#7271e7',
    950: '#000000',
  },
}
SCSS
$custom: #7271e7;
$custom-light: #a299ef;
$custom-dark: #000000;
JSON
{
  "hex": "#7271e7",
  "rgb": {
    "r": 114,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 240.508,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.60848,
    "c": 0.17384,
    "h": 280.3
  },
  "luminance": 0.21157
}

Semantic roles & 50–950 ramp

primary
#7271E7
secondary
#ECECC7
accent
#D312D1
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7271E7

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

Preview Lab → · Contrast checker → · Palette generator →

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