#6254E5#6254E5

#6254E5 is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.5% C 0.211 H 281.2°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#6254E5
RGBrgb(98, 84, 229)
HSLhsl(246, 74%, 61%)
HSVhsv(246, 63%, 90%)
CMYKcmyk(57.2%, 63.3%, 0%, 10.2%)
CIE-LABlab(45.07, 45.36, -71.92)
CIE-LCHlch(45.07, 85.03, 302.24°)
OKLaboklab(54.55% 0.0408 -0.2068)
OKLCHoklch(54.55% 0.211 281.2)
XYZxyz(22.3458, 14.5930, 75.7528)
Luminance0.1459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6254E5 #D7E554
analogous
#548FE5 #6254E5 #AB54E5
triadic
#6254E5 #E56254 #54E562
tetradic
#6254E5 #E5548F #D7E554 #54E5AB
square
#6254E5 #E5548F #D7E554 #54E5AB
split-complementary
#6254E5 #E5AB54 #8FE554
monochromatic
#2719A5 #3321DB #6254E5 #9389ED #C4BEF5

Accessibility & contrast

On white

5.36
#6254E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#6254E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6254E5
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6254E5#FFFFFF#000000##FFFFFF
##6254E51.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EA
Deuteranopia (green-blind)
#0065E2
Tritanopia (blue-blind)
#137895
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #6254e5;
/* rgb */ color: rgb(98, 84, 229);
/* oklch */ color: oklch(54.5% 0.211 281.2);
Tailwind
colors: {
  custom: {
    50: '#9b85ee',
    500: '#6254e5',
    950: '#000000',
  },
}
SCSS
$custom: #6254e5;
$custom-light: #9b85ee;
$custom-dark: #000000;
JSON
{
  "hex": "#6254e5",
  "rgb": {
    "r": 98,
    "g": 84,
    "b": 229
  },
  "hsl": {
    "h": 245.793,
    "s": 73.604,
    "l": 61.373
  },
  "oklch": {
    "l": 0.54548,
    "c": 0.21082,
    "h": 281.2
  },
  "luminance": 0.14594
}

Semantic roles & 50–950 ramp

primary
#6254E5
secondary
#E0E6AF
accent
#D610C3
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6254E5

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

Preview Lab → · Contrast checker → · Palette generator →

#6254E5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva