#CFB23A#CFB23A

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

Color values

HEX#CFB23A
RGBrgb(207, 178, 58)
HSLhsl(48, 61%, 52%)
HSVhsv(48, 72%, 81%)
CMYKcmyk(0%, 14%, 72%, 18.8%)
CIE-LABlab(73.16, -2.23, 61.92)
CIE-LCHlch(73.16, 61.96, 92.06°)
OKLaboklab(76.8% -0.0123 0.1373)
OKLCHoklch(76.8% 0.138 95.1)
XYZxyz(42.4184, 45.4140, 10.5337)
Luminance0.4541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB23A #3A57CF
analogous
#CF683A #CFB23A #A2CF3A
triadic
#CFB23A #3ACFB2 #B23ACF
tetradic
#CFB23A #3ACF68 #3A57CF #CF3AA2
square
#CFB23A #3ACF68 #3A57CF #CF3AA2
split-complementary
#CFB23A #3AA2CF #683ACF
monochromatic
#73621C #A48C28 #CFB23A #DBC56B #E7D89C

Accessibility & contrast

On white

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

On black

10.08
#CFB23A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB23A
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB23A#FFFFFF#000000##000000
##CFB23A1.002.0810.0810.08
#FFFFFF2.081.0021.0021.00
#00000010.0821.001.001.00
##00000010.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE27
Deuteranopia (green-blind)
#CCB741
Tritanopia (blue-blind)
#E0A49A
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cfb23a;
/* rgb */ color: rgb(207, 178, 58);
/* oklch */ color: oklch(76.8% 0.138 95.1);
Tailwind
colors: {
  custom: {
    50: '#e2c878',
    500: '#cfb23a',
    950: '#000000',
  },
}
SCSS
$custom: #cfb23a;
$custom-light: #e2c878;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb23a",
  "rgb": {
    "r": 207,
    "g": 178,
    "b": 58
  },
  "hsl": {
    "h": 48.322,
    "s": 60.816,
    "l": 51.961
  },
  "oklch": {
    "l": 0.76796,
    "c": 0.13786,
    "h": 95.1
  },
  "luminance": 0.45412
}

Semantic roles & 50–950 ramp

primary
#CFB23A
secondary
#929ED3
accent
#63E444
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CFB23A

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

Preview Lab → · Contrast checker → · Palette generator →

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