#CFB240#CFB240

#CFB240 is a light, vivid yellow. Relative luminance 0.455; OKLCH L 76.8% C 0.134 H 94.6°. Best body text is #000000 at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#CFB240
RGBrgb(207, 178, 64)
HSLhsl(48, 60%, 53%)
HSVhsv(48, 69%, 81%)
CMYKcmyk(0%, 14%, 69.1%, 18.8%)
CIE-LABlab(73.21, -1.92, 59.58)
CIE-LCHlch(73.21, 59.61, 91.85°)
OKLaboklab(76.84% -0.0107 0.1335)
OKLCHoklch(76.84% 0.134 94.6)
XYZxyz(42.5801, 45.4786, 11.3850)
Luminance0.4548 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB240 #405DCF
analogous
#CF6A40 #CFB240 #A5CF40
triadic
#CFB240 #40CFB2 #B240CF
tetradic
#CFB240 #40CF6A #405DCF #CF40A5
square
#CFB240 #40CF6A #405DCF #CF40A5
split-complementary
#CFB240 #40A5CF #6A40CF
monochromatic
#77651E #A88E2A #CFB240 #DBC671 #E8D9A2

Accessibility & contrast

On white

2.08
#CFB240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.10
#CFB240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB240
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB240#FFFFFF#000000##000000
##CFB2401.002.0810.1010.10
#FFFFFF2.081.0021.0021.00
#00000010.1021.001.001.00
##00000010.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cfb240;
/* rgb */ color: rgb(207, 178, 64);
/* oklch */ color: oklch(76.8% 0.134 94.6);
Tailwind
colors: {
  custom: {
    50: '#e1c87b',
    500: '#cfb240',
    950: '#000000',
  },
}
SCSS
$custom: #cfb240;
$custom-light: #e1c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb240",
  "rgb": {
    "r": 207,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 47.832,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.76842,
    "c": 0.13388,
    "h": 94.6
  },
  "luminance": 0.45476
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CFB240

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

Preview Lab → · Contrast checker → · Palette generator →

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