#CFC27F#CFC27F

#CFC27F is a light, moderate yellow. Relative luminance 0.534; OKLCH L 80.9% C 0.088 H 98.6°. Best body text is #000000 at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#CFC27F
RGBrgb(207, 194, 127)
HSLhsl(50, 45%, 65%)
HSVhsv(50, 39%, 81%)
CMYKcmyk(0%, 6.3%, 38.6%, 18.8%)
CIE-LABlab(78.10, -5.08, 35.36)
CIE-LCHlch(78.10, 35.72, 98.18°)
OKLaboklab(80.95% -0.0131 0.0868)
OKLCHoklch(80.95% 0.088 98.6)
XYZxyz(48.8556, 53.3827, 27.8049)
Luminance0.5338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC27F #7F8CCF
analogous
#CF9A7F #CFC27F #B4CF7F
triadic
#CFC27F #7FCFC2 #C27FCF
tetradic
#CFC27F #7FCF9A #7F8CCF #CF7FB4
square
#CFC27F #7FCF9A #7F8CCF #CF7FB4
split-complementary
#CFC27F #7FB4CF #9A7FCF
monochromatic
#9A8A3A #BEAD52 #CFC27F #E0D7AC #F0ECD8

Accessibility & contrast

On white

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

On black

11.68
#CFC27F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC27F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC27F#FFFFFF#000000##000000
##CFC27F1.001.8011.6811.68
#FFFFFF1.801.0021.0021.00
#00000011.6821.001.001.00
##00000011.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEBE7A
Deuteranopia (green-blind)
#D2C382
Tritanopia (blue-blind)
#DAB9B1
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cfc27f;
/* rgb */ color: rgb(207, 194, 127);
/* oklch */ color: oklch(80.9% 0.088 98.6);
Tailwind
colors: {
  custom: {
    50: '#dfd4a5',
    500: '#cfc27f',
    950: '#000000',
  },
}
SCSS
$custom: #cfc27f;
$custom-light: #dfd4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc27f",
  "rgb": {
    "r": 207,
    "g": 194,
    "b": 127
  },
  "hsl": {
    "h": 50.25,
    "s": 45.455,
    "l": 65.49
  },
  "oklch": {
    "l": 0.80946,
    "c": 0.08781,
    "h": 98.6
  },
  "luminance": 0.53381
}

Semantic roles & 50–950 ramp

primary
#CFC27F
secondary
#535FA0
accent
#44B92D
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CFC27F

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

Preview Lab → · Contrast checker → · Palette generator →

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