#CFCA5F#CFCA5F

#CFCA5F is a very light, vivid yellow. Relative luminance 0.563; OKLCH L 82.2% C 0.129 H 106.5°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#CFCA5F
RGBrgb(207, 202, 95)
HSLhsl(57, 54%, 59%)
HSVhsv(57, 54%, 81%)
CMYKcmyk(0%, 2.4%, 54.1%, 18.8%)
CIE-LABlab(79.80, -12.25, 53.18)
CIE-LCHlch(79.80, 54.57, 102.97°)
OKLaboklab(82.17% -0.0367 0.1241)
OKLCHoklch(82.17% 0.129 106.5)
XYZxyz(48.9196, 56.3341, 19.1209)
Luminance0.5633 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCA5F #5F64CF
analogous
#CF925F #CFCA5F #9CCF5F
triadic
#CFCA5F #5FCFCA #CA5FCF
tetradic
#CFCA5F #5FCF92 #5F64CF #CF5F9C
square
#CFCA5F #5FCF92 #5F64CF #CF5F9C
split-complementary
#CFCA5F #5F9CCF #925FCF
monochromatic
#8A8629 #B9B338 #CFCA5F #DDDA8E #EBE9BD

Accessibility & contrast

On white

1.71
#CFCA5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#CFCA5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCA5F
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCA5F#FFFFFF#000000##000000
##CFCA5F1.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C354
Deuteranopia (green-blind)
#DBC865
Tritanopia (blue-blind)
#DCBEB2
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cfca5f;
/* rgb */ color: rgb(207, 202, 95);
/* oklch */ color: oklch(82.2% 0.129 106.5);
Tailwind
colors: {
  custom: {
    50: '#e0d990',
    500: '#cfca5f',
    950: '#000000',
  },
}
SCSS
$custom: #cfca5f;
$custom-light: #e0d990;
$custom-dark: #000000;
JSON
{
  "hex": "#cfca5f",
  "rgb": {
    "r": 207,
    "g": 202,
    "b": 95
  },
  "hsl": {
    "h": 57.321,
    "s": 53.846,
    "l": 59.216
  },
  "oklch": {
    "l": 0.82165,
    "c": 0.12944,
    "h": 106.5
  },
  "luminance": 0.56333
}

Semantic roles & 50–950 ramp

primary
#CFCA5F
secondary
#414591
accent
#51DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #CFCA5F

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

Preview Lab → · Contrast checker → · Palette generator →

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