#CFC754#CFC754

#CFC754 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.4% C 0.136 H 105.3°. Best body text is #000000 at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#CFC754
RGBrgb(207, 199, 84)
HSLhsl(56, 56%, 57%)
HSVhsv(56, 59%, 81%)
CMYKcmyk(0%, 3.9%, 59.4%, 18.8%)
CIE-LABlab(78.90, -11.55, 57.12)
CIE-LCHlch(78.90, 58.28, 101.43°)
OKLaboklab(81.41% -0.0359 0.1313)
OKLCHoklch(81.41% 0.136 105.3)
XYZxyz(47.7574, 54.7539, 16.4387)
Luminance0.5475 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC754 #545CCF
analogous
#CF8A54 #CFC754 #99CF54
triadic
#CFC754 #54CFC7 #C754CF
tetradic
#CFC754 #54CF8A #545CCF #CF5499
square
#CFC754 #54CF8A #545CCF #CF5499
split-complementary
#CFC754 #5499CF #8A54CF
monochromatic
#847D25 #B3AB32 #CFC754 #DCD784 #EAE6B4

Accessibility & contrast

On white

1.76
#CFC754 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.95
#CFC754 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC754
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC754#FFFFFF#000000##000000
##CFC7541.001.7611.9511.95
#FFFFFF1.761.0021.0021.00
#00000011.9521.001.001.00
##00000011.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C047
Deuteranopia (green-blind)
#DAC65A
Tritanopia (blue-blind)
#DDBBAE
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cfc754;
/* rgb */ color: rgb(207, 199, 84);
/* oklch */ color: oklch(81.4% 0.136 105.3);
Tailwind
colors: {
  custom: {
    50: '#e0d788',
    500: '#cfc754',
    950: '#000000',
  },
}
SCSS
$custom: #cfc754;
$custom-light: #e0d788;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc754",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 84
  },
  "hsl": {
    "h": 56.098,
    "s": 56.164,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81411,
    "c": 0.1361,
    "h": 105.3
  },
  "luminance": 0.54752
}

Semantic roles & 50–950 ramp

primary
#CFC754
secondary
#3C428B
accent
#52DF48
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFC754

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

Preview Lab → · Contrast checker → · Palette generator →

#CFC754 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva