#CFAF2A#CFAF2A

#CFAF2A is a light, vivid yellow. Relative luminance 0.441; OKLCH L 76.1% C 0.145 H 94.4°. Best body text is #000000 at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#CFAF2A
RGBrgb(207, 175, 42)
HSLhsl(48, 66%, 49%)
HSVhsv(48, 80%, 81%)
CMYKcmyk(0%, 15.5%, 79.7%, 18.8%)
CIE-LABlab(72.29, -1.30, 66.70)
CIE-LCHlch(72.29, 66.71, 91.12°)
OKLaboklab(76.08% -0.0112 0.1444)
OKLCHoklch(76.08% 0.145 94.4)
XYZxyz(41.4824, 44.0950, 8.5163)
Luminance0.4409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAF2A #2A4ACF
analogous
#CF5D2A #CFAF2A #9DCF2A
triadic
#CFAF2A #2ACFAF #AF2ACF
tetradic
#CFAF2A #2ACF5D #2A4ACF #CF2A9D
square
#CFAF2A #2ACF5D #2A4ACF #CF2A9D
split-complementary
#CFAF2A #2A9DCF #5D2ACF
monochromatic
#695915 #9C8420 #CFAF2A #DDC459 #E8D68C

Accessibility & contrast

On white

2.14
#CFAF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.82
#CFAF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAF2A
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAF2A#FFFFFF#000000##000000
##CFAF2A1.002.149.829.82
#FFFFFF2.141.0021.0021.00
#0000009.8221.001.001.00
##0000009.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC04
Deuteranopia (green-blind)
#CAB533
Tritanopia (blue-blind)
#E0A096
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cfaf2a;
/* rgb */ color: rgb(207, 175, 42);
/* oklch */ color: oklch(76.1% 0.145 94.4);
Tailwind
colors: {
  custom: {
    50: '#e2c66f',
    500: '#cfaf2a',
    950: '#000000',
  },
}
SCSS
$custom: #cfaf2a;
$custom-light: #e2c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#cfaf2a",
  "rgb": {
    "r": 207,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 48.364,
    "s": 66.265,
    "l": 48.824
  },
  "oklch": {
    "l": 0.76077,
    "c": 0.14479,
    "h": 94.4
  },
  "luminance": 0.44093
}

Semantic roles & 50–950 ramp

primary
#CFAF2A
secondary
#8392D2
accent
#60E93F
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161208
muted
#84817B

Preview Lab

Preview with #CFAF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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