#CFB540#CFB540

#CFB540 is a light, vivid yellow. Relative luminance 0.467; OKLCH L 77.5% C 0.136 H 96.4°. Best body text is #000000 at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#CFB540
RGBrgb(207, 181, 64)
HSLhsl(49, 60%, 53%)
HSVhsv(49, 69%, 81%)
CMYKcmyk(0%, 12.6%, 69.1%, 18.8%)
CIE-LABlab(73.99, -3.50, 60.38)
CIE-LCHlch(73.99, 60.48, 93.32°)
OKLaboklab(77.46% -0.0152 0.1351)
OKLCHoklch(77.46% 0.136 96.4)
XYZxyz(43.1835, 46.6855, 11.5861)
Luminance0.4668 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB540 #405ACF
analogous
#CF6D40 #CFB540 #A1CF40
triadic
#CFB540 #40CFB5 #B540CF
tetradic
#CFB540 #40CF6D #405ACF #CF40A1
square
#CFB540 #40CF6D #405ACF #CF40A1
split-complementary
#CFB540 #40A1CF #6D40CF
monochromatic
#77671E #A8912A #CFB540 #DBC871 #E8DBA2

Accessibility & contrast

On white

2.03
#CFB540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.34
#CFB540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB540
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB540#FFFFFF#000000##000000
##CFB5401.002.0310.3410.34
#FFFFFF2.031.0021.0021.00
#00000010.3421.001.001.00
##00000010.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B130
Deuteranopia (green-blind)
#CEB947
Tritanopia (blue-blind)
#DFA79D
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #cfb540;
/* rgb */ color: rgb(207, 181, 64);
/* oklch */ color: oklch(77.5% 0.136 96.4);
Tailwind
colors: {
  custom: {
    50: '#e1ca7b',
    500: '#cfb540',
    950: '#000000',
  },
}
SCSS
$custom: #cfb540;
$custom-light: #e1ca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb540",
  "rgb": {
    "r": 207,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 49.091,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.77461,
    "c": 0.13598,
    "h": 96.4
  },
  "luminance": 0.46683
}

Semantic roles & 50–950 ramp

primary
#CFB540
secondary
#97A2D4
accent
#62E345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFB540

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

Preview Lab → · Contrast checker → · Palette generator →

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