#7271F5#7271F5

#7271F5 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.8% C 0.192 H 279.5°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7271F5
RGBrgb(114, 113, 245)
HSLhsl(240, 87%, 70%)
HSVhsv(240, 54%, 96%)
CMYKcmyk(53.5%, 53.9%, 0%, 3.9%)
CIE-LABlab(54.00, 36.10, -66.35)
CIE-LCHlch(54.00, 75.53, 298.55°)
OKLaboklab(61.79% 0.0318 -0.1898)
OKLCHoklch(61.79% 0.192 279.5)
XYZxyz(29.3208, 21.9784, 89.0657)
Luminance0.2198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7271F5 #F4F571
analogous
#71B2F5 #7271F5 #B471F5
triadic
#7271F5 #F57271 #71F572
tetradic
#7271F5 #F571B2 #F4F571 #71F5B4
square
#7271F5 #F571B2 #F4F571 #71F5B4
split-complementary
#7271F5 #F5B471 #B2F571
monochromatic
#1110DC #3938F1 #7271F5 #ABAAF9 #E3E2FD

Accessibility & contrast

On white

3.89
#7271F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#7271F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7271F5
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7271F5#FFFFFF#000000##000000
##7271F51.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D86FA
Deuteranopia (green-blind)
#007CF2
Tritanopia (blue-blind)
#358FA8
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7271f5;
/* rgb */ color: rgb(114, 113, 245);
/* oklch */ color: oklch(61.8% 0.192 279.5);
Tailwind
colors: {
  custom: {
    50: '#a49af9',
    500: '#7271f5',
    950: '#000000',
  },
}
SCSS
$custom: #7271f5;
$custom-light: #a49af9;
$custom-dark: #000000;
JSON
{
  "hex": "#7271f5",
  "rgb": {
    "r": 114,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 240.455,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.61792,
    "c": 0.19248,
    "h": 279.5
  },
  "luminance": 0.2198
}

Semantic roles & 50–950 ramp

primary
#7271F5
secondary
#F3F3CF
accent
#E302E2
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7271F5

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

Preview Lab → · Contrast checker → · Palette generator →

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