#CFAC38#CFAC38

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

Color values

HEX#CFAC38
RGBrgb(207, 172, 56)
HSLhsl(46, 61%, 52%)
HSVhsv(46, 73%, 81%)
CMYKcmyk(0%, 16.9%, 72.9%, 18.8%)
CIE-LABlab(71.59, 0.84, 61.15)
CIE-LCHlch(71.59, 61.15, 89.21°)
OKLaboklab(75.55% -0.0037 0.1353)
OKLCHoklch(75.55% 0.135 91.6)
XYZxyz(41.2007, 43.0584, 9.8816)
Luminance0.4306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAC38 #385BCF
analogous
#CF6138 #CFAC38 #A7CF38
triadic
#CFAC38 #38CFAC #AC38CF
tetradic
#CFAC38 #38CF61 #385BCF #CF38A7
square
#CFAC38 #38CF61 #385BCF #CF38A7
split-complementary
#CFAC38 #38A7CF #6138CF
monochromatic
#715D1B #A38627 #CFAC38 #DBC169 #E7D59B

Accessibility & contrast

On white

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

On black

9.61
#CFAC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAC38
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAC38#FFFFFF#000000##000000
##CFAC381.002.189.619.61
#FFFFFF2.181.0021.0021.00
#0000009.6121.001.001.00
##0000009.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA26
Deuteranopia (green-blind)
#C8B43E
Tritanopia (blue-blind)
#E09E95
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cfac38;
/* rgb */ color: rgb(207, 172, 56);
/* oklch */ color: oklch(75.6% 0.135 91.6);
Tailwind
colors: {
  custom: {
    50: '#e2c476',
    500: '#cfac38',
    950: '#000000',
  },
}
SCSS
$custom: #cfac38;
$custom-light: #e2c476;
$custom-dark: #000000;
JSON
{
  "hex": "#cfac38",
  "rgb": {
    "r": 207,
    "g": 172,
    "b": 56
  },
  "hsl": {
    "h": 46.093,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.75552,
    "c": 0.13535,
    "h": 91.6
  },
  "luminance": 0.43056
}

Semantic roles & 50–950 ramp

primary
#CFAC38
secondary
#90A0D3
accent
#69E444
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CFAC38

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

Preview Lab → · Contrast checker → · Palette generator →

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