#CBAF54#CBAF54

#CBAF54 is a light, moderate yellow. Relative luminance 0.440; OKLCH L 76.0% C 0.115 H 92.4°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#CBAF54
RGBrgb(203, 175, 84)
HSLhsl(46, 53%, 56%)
HSVhsv(46, 59%, 80%)
CMYKcmyk(0%, 13.8%, 58.6%, 20.4%)
CIE-LABlab(72.23, -0.79, 49.54)
CIE-LCHlch(72.23, 49.55, 90.91°)
OKLaboklab(76.04% -0.0048 0.1151)
OKLCHoklch(76.04% 0.115 92.4)
XYZxyz(41.5606, 43.9986, 14.6892)
Luminance0.4400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAF54 #5470CB
analogous
#CB7454 #CBAF54 #ACCB54
triadic
#CBAF54 #54CBAF #AF54CB
tetradic
#CBAF54 #54CB74 #5470CB #CB54AC
square
#CBAF54 #54CB74 #5470CB #CB54AC
split-complementary
#CBAF54 #54ACCB #7454CB
monochromatic
#7E6A26 #AD9135 #CBAF54 #D9C583 #E8DBB2

Accessibility & contrast

On white

2.14
#CBAF54 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#CBAF54 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAF54
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAF54#FFFFFF#000000##000000
##CBAF541.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAC4B
Deuteranopia (green-blind)
#C7B558
Tritanopia (blue-blind)
#DAA39B
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cbaf54;
/* rgb */ color: rgb(203, 175, 84);
/* oklch */ color: oklch(76.0% 0.115 92.4);
Tailwind
colors: {
  custom: {
    50: '#dec687',
    500: '#cbaf54',
    950: '#000000',
  },
}
SCSS
$custom: #cbaf54;
$custom-light: #dec687;
$custom-dark: #000000;
JSON
{
  "hex": "#cbaf54",
  "rgb": {
    "r": 203,
    "g": 175,
    "b": 84
  },
  "hsl": {
    "h": 45.882,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.76039,
    "c": 0.11524,
    "h": 92.4
  },
  "luminance": 0.43997
}

Semantic roles & 50–950 ramp

primary
#CBAF54
secondary
#A5B0D6
accent
#6DDD4B
background
#FDFCF8
surface
#FBF8F0
border
#D4D1CB
text
#15130B
muted
#83827C

Preview Lab

Preview with #CBAF54

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

Preview Lab → · Contrast checker → · Palette generator →

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