#CFC278#CFC278

#CFC278 is a light, moderate yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.096 H 99.5°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#CFC278
RGBrgb(207, 194, 120)
HSLhsl(51, 48%, 64%)
HSVhsv(51, 42%, 81%)
CMYKcmyk(0%, 6.3%, 42%, 18.8%)
CIE-LABlab(78.00, -5.84, 38.81)
CIE-LCHlch(78.00, 39.25, 98.56°)
OKLaboklab(80.83% -0.0158 0.0944)
OKLCHoklch(80.83% 0.096 99.5)
XYZxyz(48.4151, 53.2065, 25.4852)
Luminance0.5321 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC278 #7885CF
analogous
#CF9778 #CFC278 #B1CF78
triadic
#CFC278 #78CFC2 #C278CF
tetradic
#CFC278 #78CF97 #7885CF #CF78B1
square
#CFC278 #78CF97 #7885CF #CF78B1
split-complementary
#CFC278 #78B1CF #9778CF
monochromatic
#978836 #BFAE4B #CFC278 #DFD6A5 #EFEBD2

Accessibility & contrast

On white

1.80
#CFC278 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.64
#CFC278 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC278
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC278#FFFFFF#000000##000000
##CFC2781.001.8011.6411.64
#FFFFFF1.801.0021.0021.00
#00000011.6421.001.001.00
##00000011.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBE72
Deuteranopia (green-blind)
#D3C37B
Tritanopia (blue-blind)
#DBB8B0
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cfc278;
/* rgb */ color: rgb(207, 194, 120);
/* oklch */ color: oklch(80.8% 0.096 99.5);
Tailwind
colors: {
  custom: {
    50: '#dfd4a0',
    500: '#cfc278',
    950: '#000000',
  },
}
SCSS
$custom: #cfc278;
$custom-light: #dfd4a0;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc278",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 120
  },
  "hsl": {
    "h": 51.034,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.8083,
    "c": 0.09571,
    "h": 99.5
  },
  "luminance": 0.53205
}

Semantic roles & 50–950 ramp

primary
#CFC278
secondary
#4E5A9D
accent
#40BB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CFC278

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

Preview Lab → · Contrast checker → · Palette generator →

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