#6252CC#6252CC

#6252CC is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.3% C 0.181 H 284.1°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#6252CC
RGBrgb(98, 82, 204)
HSLhsl(248, 54%, 56%)
HSVhsv(248, 60%, 80%)
CMYKcmyk(52%, 59.8%, 0%, 20%)
CIE-LABlab(42.75, 38.87, -61.42)
CIE-LCHlch(42.75, 72.68, 302.33°)
OKLaboklab(52.26% 0.0444 -0.176)
OKLCHoklch(52.26% 0.181 284.1)
XYZxyz(18.9501, 12.9899, 58.6238)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6252CC #BCCC52
analogous
#527FCC #6252CC #9F52CC
triadic
#6252CC #CC6252 #52CC62
tetradic
#6252CC #CC527F #BCCC52 #52CC9F
square
#6252CC #CC527F #BCCC52 #52CC9F
split-complementary
#6252CC #CC9F52 #7FCC52
monochromatic
#31257E #4333AE #6252CC #8D81DA #B8B1E8

Accessibility & contrast

On white

5.84
#6252CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#6252CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6252CC
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6252CC#FFFFFF#000000##FFFFFF
##6252CC1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#386F87
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6252cc;
/* rgb */ color: rgb(98, 82, 204);
/* oklch */ color: oklch(52.3% 0.181 284.1);
Tailwind
colors: {
  custom: {
    50: '#9783dc',
    500: '#6252cc',
    950: '#000000',
  },
}
SCSS
$custom: #6252cc;
$custom-light: #9783dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6252cc",
  "rgb": {
    "r": 98,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 247.869,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5226,
    "c": 0.18147,
    "h": 284.1
  },
  "luminance": 0.12991
}

Semantic roles & 50–950 ramp

primary
#6252CC
secondary
#CFD6A4
accent
#DE4ACA
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6252CC

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

Preview Lab → · Contrast checker → · Palette generator →

#6252CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva