#6256CB#6256CB

#6256CB is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.9% C 0.175 H 283.3°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#6256CB
RGBrgb(98, 86, 203)
HSLhsl(246, 53%, 57%)
HSVhsv(246, 58%, 80%)
CMYKcmyk(51.7%, 57.6%, 0%, 20.4%)
CIE-LABlab(43.60, 36.18, -59.46)
CIE-LCHlch(43.60, 69.60, 301.32°)
OKLaboklab(52.86% 0.0402 -0.1702)
OKLCHoklch(52.86% 0.175 283.3)
XYZxyz(19.1410, 13.5630, 58.0977)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6256CB #BFCB56
analogous
#5685CB #6256CB #9D56CB
triadic
#6256CB #CB6256 #56CB62
tetradic
#6256CB #CB5685 #BFCB56 #56CB9D
square
#6256CB #CB5685 #BFCB56 #56CB9D
split-complementary
#6256CB #CB9D56 #85CB56
monochromatic
#30277F #4236AE #6256CB #8D85D9 #B9B4E8

Accessibility & contrast

On white

5.66
#6256CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#6256CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6256CB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6256CB#FFFFFF#000000##FFFFFF
##6256CB1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#387188
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #6256cb;
/* rgb */ color: rgb(98, 86, 203);
/* oklch */ color: oklch(52.9% 0.175 283.3);
Tailwind
colors: {
  custom: {
    50: '#9786dc',
    500: '#6256cb',
    950: '#000000',
  },
}
SCSS
$custom: #6256cb;
$custom-light: #9786dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6256cb",
  "rgb": {
    "r": 98,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 246.154,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52865,
    "c": 0.17486,
    "h": 283.3
  },
  "luminance": 0.13564
}

Semantic roles & 50–950 ramp

primary
#6256CB
secondary
#D1D6A6
accent
#DC4BCD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6256CB

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

Preview Lab → · Contrast checker → · Palette generator →

#6256CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva