#CFB23C#CFB23C

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

Color values

HEX#CFB23C
RGBrgb(207, 178, 60)
HSLhsl(48, 60%, 52%)
HSVhsv(48, 71%, 81%)
CMYKcmyk(0%, 14%, 71%, 18.8%)
CIE-LABlab(73.18, -2.13, 61.15)
CIE-LCHlch(73.18, 61.19, 92.00°)
OKLaboklab(76.81% -0.0118 0.1361)
OKLCHoklch(76.81% 0.137 94.9)
XYZxyz(42.4703, 45.4347, 10.8069)
Luminance0.4543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB23C #3C59CF
analogous
#CF683C #CFB23C #A3CF3C
triadic
#CFB23C #3CCFB2 #B23CCF
tetradic
#CFB23C #3CCF68 #3C59CF #CF3CA3
square
#CFB23C #3CCF68 #3C59CF #CF3CA3
split-complementary
#CFB23C #3CA3CF #683CCF
monochromatic
#74631D #A58D29 #CFB23C #DBC56D #E7D99E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFB23C#FFFFFF#000000##000000
##CFB23C1.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)
#C4AF2B
Deuteranopia (green-blind)
#CCB743
Tritanopia (blue-blind)
#DFA49A
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cfb23c;
/* rgb */ color: rgb(207, 178, 60);
/* oklch */ color: oklch(76.8% 0.137 94.9);
Tailwind
colors: {
  custom: {
    50: '#e2c879',
    500: '#cfb23c',
    950: '#000000',
  },
}
SCSS
$custom: #cfb23c;
$custom-light: #e2c879;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb23c",
  "rgb": {
    "r": 207,
    "g": 178,
    "b": 60
  },
  "hsl": {
    "h": 48.163,
    "s": 60.494,
    "l": 52.353
  },
  "oklch": {
    "l": 0.76811,
    "c": 0.13657,
    "h": 94.9
  },
  "luminance": 0.45432
}

Semantic roles & 50–950 ramp

primary
#CFB23C
secondary
#93A0D3
accent
#64E444
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CFB23C

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

Preview Lab → · Contrast checker → · Palette generator →

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