#6254CA#6254CA

#6254CA is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.4% C 0.176 H 283.9°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#6254CA
RGBrgb(98, 84, 202)
HSLhsl(247, 53%, 56%)
HSVhsv(247, 58%, 79%)
CMYKcmyk(51.5%, 58.4%, 0%, 20.8%)
CIE-LABlab(43.06, 37.07, -59.75)
CIE-LCHlch(43.06, 70.32, 301.82°)
OKLaboklab(52.45% 0.0423 -0.171)
OKLCHoklch(52.45% 0.176 283.9)
XYZxyz(18.8648, 13.2006, 57.4196)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6254CA #BCCA54
analogous
#5481CA #6254CA #9D54CA
triadic
#6254CA #CA6254 #54CA62
tetradic
#6254CA #CA5481 #BCCA54 #54CA9D
square
#6254CA #CA5481 #BCCA54 #54CA9D
split-complementary
#6254CA #CA9D54 #81CA54
monochromatic
#31277D #4335AC #6254CA #8D83D8 #B8B1E7

Accessibility & contrast

On white

5.77
#6254CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#6254CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6254CA
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6254CA#FFFFFF#000000##FFFFFF
##6254CA1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#0062C8
Tritanopia (blue-blind)
#396F87
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #6254ca;
/* rgb */ color: rgb(98, 84, 202);
/* oklch */ color: oklch(52.4% 0.176 283.9);
Tailwind
colors: {
  custom: {
    50: '#9784db',
    500: '#6254ca',
    950: '#000000',
  },
}
SCSS
$custom: #6254ca;
$custom-light: #9784db;
$custom-dark: #000000;
JSON
{
  "hex": "#6254ca",
  "rgb": {
    "r": 98,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 247.119,
    "s": 52.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52447,
    "c": 0.1762,
    "h": 283.9
  },
  "luminance": 0.13202
}

Semantic roles & 50–950 ramp

primary
#6254CA
secondary
#CFD5A5
accent
#DC4CCB
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6254CA

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

Preview Lab → · Contrast checker → · Palette generator →

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