#CFB23F#CFB23F

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

Color values

HEX#CFB23F
RGBrgb(207, 178, 63)
HSLhsl(48, 60%, 53%)
HSVhsv(48, 70%, 81%)
CMYKcmyk(0%, 14%, 69.6%, 18.8%)
CIE-LABlab(73.20, -1.98, 59.98)
CIE-LCHlch(73.20, 60.01, 91.89°)
OKLaboklab(76.83% -0.011 0.1341)
OKLCHoklch(76.83% 0.135 94.7)
XYZxyz(42.5519, 45.4674, 11.2364)
Luminance0.4546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB23F #3F5CCF
analogous
#CF6A3F #CFB23F #A4CF3F
triadic
#CFB23F #3FCFB2 #B23FCF
tetradic
#CFB23F #3FCF6A #3F5CCF #CF3FA4
square
#CFB23F #3FCF6A #3F5CCF #CF3FA4
split-complementary
#CFB23F #3FA4CF #6A3FCF
monochromatic
#76641E #A78E2A #CFB23F #DBC670 #E7D9A1

Accessibility & contrast

On white

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

On black

10.09
#CFB23F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB23F
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB23F#FFFFFF#000000##000000
##CFB23F1.002.0810.0910.09
#FFFFFF2.081.0021.0021.00
#00000010.0921.001.001.00
##00000010.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cfb23f;
/* rgb */ color: rgb(207, 178, 63);
/* oklch */ color: oklch(76.8% 0.135 94.7);
Tailwind
colors: {
  custom: {
    50: '#e1c87a',
    500: '#cfb23f',
    950: '#000000',
  },
}
SCSS
$custom: #cfb23f;
$custom-light: #e1c87a;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb23f",
  "rgb": {
    "r": 207,
    "g": 178,
    "b": 63
  },
  "hsl": {
    "h": 47.917,
    "s": 60,
    "l": 52.941
  },
  "oklch": {
    "l": 0.76834,
    "c": 0.13457,
    "h": 94.7
  },
  "luminance": 0.45465
}

Semantic roles & 50–950 ramp

primary
#CFB23F
secondary
#96A2D4
accent
#65E345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFB23F

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

Preview Lab → · Contrast checker → · Palette generator →

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