#C4B731#C4B731

#C4B731 is a light, vivid yellow. Relative luminance 0.458; OKLCH L 76.8% C 0.147 H 103.6°. Best body text is #000000 at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#C4B731
RGBrgb(196, 183, 49)
HSLhsl(55, 60%, 48%)
HSVhsv(55, 75%, 77%)
CMYKcmyk(0%, 6.6%, 75%, 23.1%)
CIE-LABlab(73.43, -10.00, 65.09)
CIE-LCHlch(73.43, 65.85, 98.73°)
OKLaboklab(76.76% -0.0346 0.1428)
OKLCHoklch(76.76% 0.147 103.6)
XYZxyz(40.2546, 45.8262, 9.6301)
Luminance0.4582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C4B731 #313EC4
analogous
#C46D31 #C4B731 #87C431
triadic
#C4B731 #31C4B7 #B731C4
tetradic
#C4B731 #31C46D #313EC4 #C43187
square
#C4B731 #31C46D #313EC4 #C43187
split-complementary
#C4B731 #3187C4 #6D31C4
monochromatic
#625C19 #938925 #C4B731 #D6CB5C #E2DB8D

Accessibility & contrast

On white

2.07
#C4B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.16
#C4B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C4B731
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C4B731#FFFFFF#000000##000000
##C4B7311.002.0710.1610.16
#FFFFFF2.071.0021.0021.00
#00000010.1621.001.001.00
##00000010.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B115
Deuteranopia (green-blind)
#CCB73B
Tritanopia (blue-blind)
#D3AA9D
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #c4b731;
/* rgb */ color: rgb(196, 183, 49);
/* oklch */ color: oklch(76.8% 0.147 103.6);
Tailwind
colors: {
  custom: {
    50: '#dacc73',
    500: '#c4b731',
    950: '#000000',
  },
}
SCSS
$custom: #c4b731;
$custom-light: #dacc73;
$custom-dark: #000000;
JSON
{
  "hex": "#c4b731",
  "rgb": {
    "r": 196,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 54.694,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.76755,
    "c": 0.1469,
    "h": 103.6
  },
  "luminance": 0.45824
}

Semantic roles & 50–950 ramp

primary
#C4B731
secondary
#848ACD
accent
#53E345
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C4B731

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

Preview Lab → · Contrast checker → · Palette generator →

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