#CFB340#CFB340

#CFB340 is a light, vivid yellow. Relative luminance 0.459; OKLCH L 77.0% C 0.135 H 95.2°. Best body text is #000000 at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#CFB340
RGBrgb(207, 179, 64)
HSLhsl(48, 60%, 53%)
HSVhsv(48, 69%, 81%)
CMYKcmyk(0%, 13.5%, 69.1%, 18.8%)
CIE-LABlab(73.47, -2.45, 59.85)
CIE-LCHlch(73.47, 59.90, 92.34°)
OKLaboklab(77.05% -0.0122 0.134)
OKLCHoklch(77.05% 0.135 95.2)
XYZxyz(42.7798, 45.8780, 11.4515)
Luminance0.4588 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB340 #405CCF
analogous
#CF6B40 #CFB340 #A3CF40
triadic
#CFB340 #40CFB3 #B340CF
tetradic
#CFB340 #40CF6B #405CCF #CF40A3
square
#CFB340 #40CF6B #405CCF #CF40A3
split-complementary
#CFB340 #40A3CF #6B40CF
monochromatic
#77651E #A88F2A #CFB340 #DBC671 #E8DAA2

Accessibility & contrast

On white

2.06
#CFB340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.18
#CFB340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB340
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB340#FFFFFF#000000##000000
##CFB3401.002.0610.1810.18
#FFFFFF2.061.0021.0021.00
#00000010.1821.001.001.00
##00000010.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF30
Deuteranopia (green-blind)
#CCB846
Tritanopia (blue-blind)
#DFA59C
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cfb340;
/* rgb */ color: rgb(207, 179, 64);
/* oklch */ color: oklch(77.0% 0.135 95.2);
Tailwind
colors: {
  custom: {
    50: '#e1c97b',
    500: '#cfb340',
    950: '#000000',
  },
}
SCSS
$custom: #cfb340;
$custom-light: #e1c97b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb340",
  "rgb": {
    "r": 207,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 48.252,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.77048,
    "c": 0.13457,
    "h": 95.2
  },
  "luminance": 0.45876
}

Semantic roles & 50–950 ramp

primary
#CFB340
secondary
#97A3D4
accent
#64E345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFB340

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

Preview Lab → · Contrast checker → · Palette generator →

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