#6254CF#6254CF

#6254CF is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.8% C 0.183 H 283.3°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#6254CF
RGBrgb(98, 84, 207)
HSLhsl(247, 56%, 57%)
HSVhsv(247, 59%, 81%)
CMYKcmyk(52.7%, 59.4%, 0%, 18.8%)
CIE-LABlab(43.42, 38.60, -62.05)
CIE-LCHlch(43.42, 73.08, 301.89°)
OKLaboklab(52.82% 0.0422 -0.1778)
OKLCHoklch(52.82% 0.183 283.3)
XYZxyz(19.4664, 13.4412, 60.5881)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6254CF #C1CF54
analogous
#5484CF #6254CF #9F54CF
triadic
#6254CF #CF6254 #54CF62
tetradic
#6254CF #CF5484 #C1CF54 #54CF9F
square
#6254CF #CF5484 #C1CF54 #54CF9F
split-complementary
#6254CF #CF9F54 #84CF54
monochromatic
#302584 #4132B3 #6254CF #8E84DC #BAB4EA

Accessibility & contrast

On white

5.69
#6254CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#6254CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6254CF
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6254CF#FFFFFF#000000##FFFFFF
##6254CF1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#0062CC
Tritanopia (blue-blind)
#357189
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #6254cf;
/* rgb */ color: rgb(98, 84, 207);
/* oklch */ color: oklch(52.8% 0.183 283.3);
Tailwind
colors: {
  custom: {
    50: '#9785de',
    500: '#6254cf',
    950: '#000000',
  },
}
SCSS
$custom: #6254cf;
$custom-light: #9785de;
$custom-dark: #000000;
JSON
{
  "hex": "#6254cf",
  "rgb": {
    "r": 98,
    "g": 84,
    "b": 207
  },
  "hsl": {
    "h": 246.829,
    "s": 56.164,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52823,
    "c": 0.18276,
    "h": 283.3
  },
  "luminance": 0.13442
}

Semantic roles & 50–950 ramp

primary
#6254CF
secondary
#D3D8A6
accent
#DF48CE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6254CF

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

Preview Lab → · Contrast checker → · Palette generator →

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