#CFAC40#CFAC40

#CFAC40 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 75.6% C 0.130 H 90.7°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#CFAC40
RGBrgb(207, 172, 64)
HSLhsl(45, 60%, 53%)
HSVhsv(45, 69%, 81%)
CMYKcmyk(0%, 16.9%, 69.1%, 18.8%)
CIE-LABlab(71.65, 1.24, 57.99)
CIE-LCHlch(71.65, 58.00, 88.77°)
OKLaboklab(75.61% -0.0016 0.1301)
OKLCHoklch(75.61% 0.13 90.7)
XYZxyz(41.4123, 43.1431, 10.9957)
Luminance0.4314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAC40 #4063CF
analogous
#CF6440 #CFAC40 #AACF40
triadic
#CFAC40 #40CFAC #AC40CF
tetradic
#CFAC40 #40CF64 #4063CF #CF40AA
square
#CFAC40 #40CF64 #4063CF #CF40AA
split-complementary
#CFAC40 #40AACF #6440CF
monochromatic
#77611E #A8892A #CFAC40 #DBC171 #E8D7A2

Accessibility & contrast

On white

2.18
#CFAC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.63
#CFAC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAC40
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAC40#FFFFFF#000000##000000
##CFAC401.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA32
Deuteranopia (green-blind)
#C7B445
Tritanopia (blue-blind)
#E09E96
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cfac40;
/* rgb */ color: rgb(207, 172, 64);
/* oklch */ color: oklch(75.6% 0.130 90.7);
Tailwind
colors: {
  custom: {
    50: '#e1c47b',
    500: '#cfac40',
    950: '#000000',
  },
}
SCSS
$custom: #cfac40;
$custom-light: #e1c47b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfac40",
  "rgb": {
    "r": 207,
    "g": 172,
    "b": 64
  },
  "hsl": {
    "h": 45.315,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.75615,
    "c": 0.13009,
    "h": 90.7
  },
  "luminance": 0.43141
}

Semantic roles & 50–950 ramp

primary
#CFAC40
secondary
#97A6D4
accent
#6CE345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CFAC40

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

Preview Lab → · Contrast checker → · Palette generator →

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