#CFBA40#CFBA40

#CFBA40 is a light, vivid yellow. Relative luminance 0.488; OKLCH L 78.5% C 0.140 H 99.3°. Best body text is #000000 at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#CFBA40
RGBrgb(207, 186, 64)
HSLhsl(51, 60%, 53%)
HSVhsv(51, 69%, 81%)
CMYKcmyk(0%, 10.1%, 69.1%, 18.8%)
CIE-LABlab(75.30, -6.10, 61.71)
CIE-LCHlch(75.30, 62.01, 95.65°)
OKLaboklab(78.5% -0.0226 0.1379)
OKLCHoklch(78.5% 0.14 99.3)
XYZxyz(44.2185, 48.7554, 11.9311)
Luminance0.4875 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFBA40 #4055CF
analogous
#CF7240 #CFBA40 #9CCF40
triadic
#CFBA40 #40CFBA #BA40CF
tetradic
#CFBA40 #40CF72 #4055CF #CF409C
square
#CFBA40 #40CF72 #4055CF #CF409C
split-complementary
#CFBA40 #409CCF #7240CF
monochromatic
#776A1E #A8952A #CFBA40 #DBCC71 #E8DDA2

Accessibility & contrast

On white

1.95
#CFBA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.75
#CFBA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFBA40
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFBA40#FFFFFF#000000##000000
##CFBA401.001.9510.7510.75
#FFFFFF1.951.0021.0021.00
#00000010.7521.001.001.00
##00000010.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB52F
Deuteranopia (green-blind)
#D1BD47
Tritanopia (blue-blind)
#DFADA1
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #cfba40;
/* rgb */ color: rgb(207, 186, 64);
/* oklch */ color: oklch(78.5% 0.140 99.3);
Tailwind
colors: {
  custom: {
    50: '#e1ce7c',
    500: '#cfba40',
    950: '#000000',
  },
}
SCSS
$custom: #cfba40;
$custom-light: #e1ce7c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfba40",
  "rgb": {
    "r": 207,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 51.189,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.785,
    "c": 0.13979,
    "h": 99.3
  },
  "luminance": 0.48753
}

Semantic roles & 50–950 ramp

primary
#CFBA40
secondary
#97A0D4
accent
#5CE345
background
#FEFCF7
surface
#FDF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFBA40

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

Preview Lab → · Contrast checker → · Palette generator →

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