#CFAF45#CFAF45

#CFAF45 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 76.3% C 0.128 H 92.1°. Best body text is #000000 at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#CFAF45
RGBrgb(207, 175, 69)
HSLhsl(46, 59%, 54%)
HSVhsv(46, 67%, 81%)
CMYKcmyk(0%, 15.5%, 66.7%, 18.8%)
CIE-LABlab(72.47, -0.07, 56.72)
CIE-LCHlch(72.47, 56.72, 90.07°)
OKLaboklab(76.27% -0.0048 0.1282)
OKLCHoklch(76.27% 0.128 92.1)
XYZxyz(42.1384, 44.3574, 11.9714)
Luminance0.4435 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAF45 #4565CF
analogous
#CF6A45 #CFAF45 #AACF45
triadic
#CFAF45 #45CFAF #AF45CF
tetradic
#CFAF45 #45CF6A #4565CF #CF45AA
square
#CFAF45 #45CF6A #4565CF #CF45AA
split-complementary
#CFAF45 #45AACF #6A45CF
monochromatic
#7A6520 #AB8D2C #CFAF45 #DCC476 #E8D9A6

Accessibility & contrast

On white

2.13
#CFAF45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.87
#CFAF45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAF45
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAF45#FFFFFF#000000##000000
##CFAF451.002.139.879.87
#FFFFFF2.131.0021.0021.00
#0000009.8721.001.001.00
##0000009.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC38
Deuteranopia (green-blind)
#C9B64A
Tritanopia (blue-blind)
#DFA299
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cfaf45;
/* rgb */ color: rgb(207, 175, 69);
/* oklch */ color: oklch(76.3% 0.128 92.1);
Tailwind
colors: {
  custom: {
    50: '#e1c67e',
    500: '#cfaf45',
    950: '#000000',
  },
}
SCSS
$custom: #cfaf45;
$custom-light: #e1c67e;
$custom-dark: #000000;
JSON
{
  "hex": "#cfaf45",
  "rgb": {
    "r": 207,
    "g": 175,
    "b": 69
  },
  "hsl": {
    "h": 46.087,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.76271,
    "c": 0.12831,
    "h": 92.1
  },
  "luminance": 0.44355
}

Semantic roles & 50–950 ramp

primary
#CFAF45
secondary
#9BA8D5
accent
#6AE246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFAF45

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

Preview Lab → · Contrast checker → · Palette generator →

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