#CFAC42#CFAC42

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

Color values

HEX#CFAC42
RGBrgb(207, 172, 66)
HSLhsl(45, 59%, 54%)
HSVhsv(45, 68%, 81%)
CMYKcmyk(0%, 16.9%, 68.1%, 18.8%)
CIE-LABlab(71.67, 1.35, 57.16)
CIE-LCHlch(71.67, 57.18, 88.64°)
OKLaboklab(75.63% -0.0011 0.1287)
OKLCHoklch(75.63% 0.129 90.5)
XYZxyz(41.4702, 43.1662, 11.3008)
Luminance0.4316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAC42 #4265CF
analogous
#CF6542 #CFAC42 #ACCF42
triadic
#CFAC42 #42CFAC #AC42CF
tetradic
#CFAC42 #42CF65 #4265CF #CF42AC
square
#CFAC42 #42CF65 #4265CF #CF42AC
split-complementary
#CFAC42 #42ACCF #6542CF
monochromatic
#78621F #A98A2B #CFAC42 #DBC173 #E8D7A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFAC42#FFFFFF#000000##000000
##CFAC421.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)
#BFAA35
Deuteranopia (green-blind)
#C7B447
Tritanopia (blue-blind)
#E09E96
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cfac42;
/* rgb */ color: rgb(207, 172, 66);
/* oklch */ color: oklch(75.6% 0.129 90.5);
Tailwind
colors: {
  custom: {
    50: '#e1c47c',
    500: '#cfac42',
    950: '#000000',
  },
}
SCSS
$custom: #cfac42;
$custom-light: #e1c47c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfac42",
  "rgb": {
    "r": 207,
    "g": 172,
    "b": 66
  },
  "hsl": {
    "h": 45.106,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.75633,
    "c": 0.12867,
    "h": 90.5
  },
  "luminance": 0.43164
}

Semantic roles & 50–950 ramp

primary
#CFAC42
secondary
#98A7D5
accent
#6CE345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CFAC42

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

Preview Lab → · Contrast checker → · Palette generator →

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