#7271E4#7271E4

#7271E4 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.7% C 0.170 H 280.5°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7271E4
RGBrgb(114, 113, 228)
HSLhsl(241, 68%, 67%)
HSVhsv(241, 50%, 89%)
CMYKcmyk(50%, 50.4%, 0%, 10.6%)
CIE-LABlab(52.94, 30.91, -58.57)
CIE-LCHlch(52.94, 66.23, 297.82°)
OKLaboklab(60.65% 0.0308 -0.167)
OKLCHoklch(60.65% 0.17 280.5)
XYZxyz(26.8439, 20.9876, 76.0203)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7271E4 #E3E471
analogous
#71AAE4 #7271E4 #AC71E4
triadic
#7271E4 #E47271 #71E472
tetradic
#7271E4 #E471AA #E3E471 #71E4AC
square
#7271E4 #E471AA #E3E471 #71E4AC
split-complementary
#7271E4 #E4AC71 #AAE471
monochromatic
#2423B8 #3F3EDA #7271E4 #A5A4EE #D8D8F8

Accessibility & contrast

On white

4.04
#7271E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#7271E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7271E4
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7271E4#FFFFFF#000000##000000
##7271E41.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3983E8
Deuteranopia (green-blind)
#2E7AE2
Tritanopia (blue-blind)
#458AA0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7271e4;
/* rgb */ color: rgb(114, 113, 228);
/* oklch */ color: oklch(60.7% 0.170 280.5);
Tailwind
colors: {
  custom: {
    50: '#a299ed',
    500: '#7271e4',
    950: '#000000',
  },
}
SCSS
$custom: #7271e4;
$custom-light: #a299ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7271e4",
  "rgb": {
    "r": 114,
    "g": 113,
    "b": 228
  },
  "hsl": {
    "h": 240.522,
    "s": 68.047,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60651,
    "c": 0.16979,
    "h": 280.5
  },
  "luminance": 0.20989
}

Semantic roles & 50–950 ramp

primary
#7271E4
secondary
#EAEBC6
accent
#D016CE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7271E4

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

Preview Lab → · Contrast checker → · Palette generator →

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