#CFAC34#CFAC34

#CFAC34 is a light, vivid yellow. Relative luminance 0.430; OKLCH L 75.5% C 0.138 H 91.9°. Best body text is #000000 at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#CFAC34
RGBrgb(207, 172, 52)
HSLhsl(46, 62%, 51%)
HSVhsv(46, 75%, 81%)
CMYKcmyk(0%, 16.9%, 74.9%, 18.8%)
CIE-LABlab(71.57, 0.67, 62.63)
CIE-LCHlch(71.57, 62.63, 89.39°)
OKLaboklab(75.52% -0.0046 0.1377)
OKLCHoklch(75.52% 0.138 91.9)
XYZxyz(41.1068, 43.0209, 9.3869)
Luminance0.4302 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAC34 #3457CF
analogous
#CF5E34 #CFAC34 #A4CF34
triadic
#CFAC34 #34CFAC #AC34CF
tetradic
#CFAC34 #34CF5E #3457CF #CF34A4
square
#CFAC34 #34CF5E #3457CF #CF34A4
split-complementary
#CFAC34 #34A4CF #5E34CF
monochromatic
#6E5B1A #A08426 #CFAC34 #DBC065 #E6D497

Accessibility & contrast

On white

2.19
#CFAC34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.60
#CFAC34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAC34
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAC34#FFFFFF#000000##000000
##CFAC341.002.199.609.60
#FFFFFF2.191.0021.0021.00
#0000009.6021.001.001.00
##0000009.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cfac34;
/* rgb */ color: rgb(207, 172, 52);
/* oklch */ color: oklch(75.5% 0.138 91.9);
Tailwind
colors: {
  custom: {
    50: '#e2c474',
    500: '#cfac34',
    950: '#000000',
  },
}
SCSS
$custom: #cfac34;
$custom-light: #e2c474;
$custom-dark: #000000;
JSON
{
  "hex": "#cfac34",
  "rgb": {
    "r": 207,
    "g": 172,
    "b": 52
  },
  "hsl": {
    "h": 46.452,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.75524,
    "c": 0.13775,
    "h": 91.9
  },
  "luminance": 0.43018
}

Semantic roles & 50–950 ramp

primary
#CFAC34
secondary
#8D9DD2
accent
#68E543
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CFAC34

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

Preview Lab → · Contrast checker → · Palette generator →

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