#CFB840#CFB840

#CFB840 is a light, vivid yellow. Relative luminance 0.479; OKLCH L 78.1% C 0.138 H 98.2°. Best body text is #000000 at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#CFB840
RGBrgb(207, 184, 64)
HSLhsl(50, 60%, 53%)
HSVhsv(50, 69%, 81%)
CMYKcmyk(0%, 11.1%, 69.1%, 18.8%)
CIE-LABlab(74.77, -5.06, 61.18)
CIE-LCHlch(74.77, 61.38, 94.73°)
OKLaboklab(78.08% -0.0197 0.1368)
OKLCHoklch(78.08% 0.138 98.2)
XYZxyz(43.8001, 47.9187, 11.7916)
Luminance0.4792 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB840 #4057CF
analogous
#CF7040 #CFB840 #9ECF40
triadic
#CFB840 #40CFB8 #B840CF
tetradic
#CFB840 #40CF70 #4057CF #CF409E
square
#CFB840 #40CF70 #4057CF #CF409E
split-complementary
#CFB840 #409ECF #7040CF
monochromatic
#77681E #A8932A #CFB840 #DBCA71 #E8DCA2

Accessibility & contrast

On white

1.98
#CFB840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.58
#CFB840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB840
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB840#FFFFFF#000000##000000
##CFB8401.001.9810.5810.58
#FFFFFF1.981.0021.0021.00
#00000010.5821.001.001.00
##00000010.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB32F
Deuteranopia (green-blind)
#D0BB47
Tritanopia (blue-blind)
#DFABA0
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cfb840;
/* rgb */ color: rgb(207, 184, 64);
/* oklch */ color: oklch(78.1% 0.138 98.2);
Tailwind
colors: {
  custom: {
    50: '#e1cd7c',
    500: '#cfb840',
    950: '#000000',
  },
}
SCSS
$custom: #cfb840;
$custom-light: #e1cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb840",
  "rgb": {
    "r": 207,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 50.35,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.78083,
    "c": 0.13823,
    "h": 98.2
  },
  "luminance": 0.47917
}

Semantic roles & 50–950 ramp

primary
#CFB840
secondary
#97A0D4
accent
#5EE345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFB840

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

Preview Lab → · Contrast checker → · Palette generator →

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