#CFAF4F#CFAF4F

#CFAF4F is a light, vivid yellow. Relative luminance 0.445; OKLCH L 76.4% C 0.120 H 90.8°. Best body text is #000000 at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#CFAF4F
RGBrgb(207, 175, 79)
HSLhsl(45, 57%, 56%)
HSVhsv(45, 62%, 81%)
CMYKcmyk(0%, 15.5%, 61.8%, 18.8%)
CIE-LABlab(72.56, 0.56, 52.35)
CIE-LCHlch(72.56, 52.35, 89.39°)
OKLaboklab(76.37% -0.0018 0.1204)
OKLCHoklch(76.37% 0.12 90.8)
XYZxyz(42.4754, 44.4922, 13.7462)
Luminance0.4449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFAF4F #4F6FCF
analogous
#CF6F4F #CFAF4F #AFCF4F
triadic
#CFAF4F #4FCFAF #AF4FCF
tetradic
#CFAF4F #4FCF6F #4F6FCF #CF4FAF
square
#CFAF4F #4FCF6F #4F6FCF #CF4FAF
split-complementary
#CFAF4F #4FAFCF #6F4FCF
monochromatic
#816923 #B19130 #CFAF4F #DCC57F #E9DBAF

Accessibility & contrast

On white

2.12
#CFAF4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.90
#CFAF4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFAF4F
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFAF4F#FFFFFF#000000##000000
##CFAF4F1.002.129.909.90
#FFFFFF2.121.0021.0021.00
#0000009.9021.001.001.00
##0000009.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AD45
Deuteranopia (green-blind)
#C8B653
Tritanopia (blue-blind)
#DFA29A
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cfaf4f;
/* rgb */ color: rgb(207, 175, 79);
/* oklch */ color: oklch(76.4% 0.120 90.8);
Tailwind
colors: {
  custom: {
    50: '#e1c684',
    500: '#cfaf4f',
    950: '#000000',
  },
}
SCSS
$custom: #cfaf4f;
$custom-light: #e1c684;
$custom-dark: #000000;
JSON
{
  "hex": "#cfaf4f",
  "rgb": {
    "r": 207,
    "g": 175,
    "b": 79
  },
  "hsl": {
    "h": 45,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.7637,
    "c": 0.12044,
    "h": 90.8
  },
  "luminance": 0.4449
}

Semantic roles & 50–950 ramp

primary
#CFAF4F
secondary
#A2B0D7
accent
#6EE047
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CFAF4F

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

Preview Lab → · Contrast checker → · Palette generator →

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