#CFC45F#CFC45F

#CFC45F is a light, vivid yellow. Relative luminance 0.536; OKLCH L 80.9% C 0.123 H 103.1°. Best body text is #000000 at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#CFC45F
RGBrgb(207, 196, 95)
HSLhsl(54, 54%, 59%)
HSVhsv(54, 54%, 81%)
CMYKcmyk(0%, 5.3%, 54.1%, 18.8%)
CIE-LABlab(78.21, -9.19, 51.34)
CIE-LCHlch(78.21, 52.16, 100.15°)
OKLaboklab(80.9% -0.028 0.1202)
OKLCHoklch(80.9% 0.123 103.1)
XYZxyz(47.5391, 53.5731, 18.6607)
Luminance0.5357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC45F #5F6ACF
analogous
#CF8C5F #CFC45F #A2CF5F
triadic
#CFC45F #5FCFC4 #C45FCF
tetradic
#CFC45F #5FCF8C #5F6ACF #CF5FA2
square
#CFC45F #5FCF8C #5F6ACF #CF5FA2
split-complementary
#CFC45F #5FA2CF #8C5FCF
monochromatic
#8A8129 #B9AC38 #CFC45F #DDD58E #EBE7BD

Accessibility & contrast

On white

1.79
#CFC45F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.71
#CFC45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC45F
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC45F#FFFFFF#000000##000000
##CFC45F1.001.7911.7111.71
#FFFFFF1.791.0021.0021.00
#00000011.7121.001.001.00
##00000011.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BE55
Deuteranopia (green-blind)
#D7C464
Tritanopia (blue-blind)
#DDB8AD
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cfc45f;
/* rgb */ color: rgb(207, 196, 95);
/* oklch */ color: oklch(80.9% 0.123 103.1);
Tailwind
colors: {
  custom: {
    50: '#e0d58f',
    500: '#cfc45f',
    950: '#000000',
  },
}
SCSS
$custom: #cfc45f;
$custom-light: #e0d58f;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc45f",
  "rgb": {
    "r": 207,
    "g": 196,
    "b": 95
  },
  "hsl": {
    "h": 54.107,
    "s": 53.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.809,
    "c": 0.12338,
    "h": 103.1
  },
  "luminance": 0.53571
}

Semantic roles & 50–950 ramp

primary
#CFC45F
secondary
#414991
accent
#59DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #CFC45F

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

Preview Lab → · Contrast checker → · Palette generator →

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