#6254CE#6254CE

#6254CE is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.7% C 0.181 H 283.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#6254CE
RGBrgb(98, 84, 206)
HSLhsl(247, 55%, 57%)
HSVhsv(247, 59%, 81%)
CMYKcmyk(52.4%, 59.2%, 0%, 19.2%)
CIE-LABlab(43.35, 38.30, -61.59)
CIE-LCHlch(43.35, 72.53, 301.87°)
OKLaboklab(52.75% 0.0422 -0.1765)
OKLCHoklch(52.75% 0.181 283.5)
XYZxyz(19.3445, 13.3925, 59.9462)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6254CE #C0CE54
analogous
#5483CE #6254CE #9F54CE
triadic
#6254CE #CE6254 #54CE62
tetradic
#6254CE #CE5483 #C0CE54 #54CE9F
square
#6254CE #CE5483 #C0CE54 #54CE9F
split-complementary
#6254CE #CE9F54 #83CE54
monochromatic
#302582 #4233B2 #6254CE #8E84DC #B9B3E9

Accessibility & contrast

On white

5.71
#6254CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#6254CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6254CE
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6254CE#FFFFFF#000000##FFFFFF
##6254CE1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#357189
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #6254ce;
/* rgb */ color: rgb(98, 84, 206);
/* oklch */ color: oklch(52.7% 0.181 283.5);
Tailwind
colors: {
  custom: {
    50: '#9785de',
    500: '#6254ce',
    950: '#000000',
  },
}
SCSS
$custom: #6254ce;
$custom-light: #9785de;
$custom-dark: #000000;
JSON
{
  "hex": "#6254ce",
  "rgb": {
    "r": 98,
    "g": 84,
    "b": 206
  },
  "hsl": {
    "h": 246.885,
    "s": 55.455,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52747,
    "c": 0.18145,
    "h": 283.5
  },
  "luminance": 0.13394
}

Semantic roles & 50–950 ramp

primary
#6254CE
secondary
#D2D8A6
accent
#DF49CE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6254CE

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

Preview Lab → · Contrast checker → · Palette generator →

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