#C2B431#C2B431

#C2B431 is a light, vivid yellow. Relative luminance 0.443; OKLCH L 75.9% C 0.144 H 103.0°. Best body text is #000000 at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#C2B431
RGBrgb(194, 180, 49)
HSLhsl(54, 60%, 48%)
HSVhsv(54, 75%, 76%)
CMYKcmyk(0%, 7.2%, 74.7%, 23.9%)
CIE-LABlab(72.45, -9.32, 64.10)
CIE-LCHlch(72.45, 64.78, 98.27°)
OKLaboklab(75.93% -0.0326 0.1408)
OKLCHoklch(75.93% 0.144 103)
XYZxyz(39.1255, 44.3353, 9.4018)
Luminance0.4433 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2B431 #313FC2
analogous
#C26C31 #C2B431 #87C231
triadic
#C2B431 #31C2B4 #B431C2
tetradic
#C2B431 #31C26C #313FC2 #C23187
square
#C2B431 #31C26C #313FC2 #C23187
split-complementary
#C2B431 #3187C2 #6C31C2
monochromatic
#605918 #918725 #C2B431 #D6CA5B #E2DA8C

Accessibility & contrast

On white

2.13
#C2B431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.87
#C2B431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2B431
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2B431#FFFFFF#000000##000000
##C2B4311.002.139.879.87
#FFFFFF2.131.0021.0021.00
#0000009.8721.001.001.00
##0000009.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE16
Deuteranopia (green-blind)
#C9B53A
Tritanopia (blue-blind)
#D1A79B
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #c2b431;
/* rgb */ color: rgb(194, 180, 49);
/* oklch */ color: oklch(75.9% 0.144 103.0);
Tailwind
colors: {
  custom: {
    50: '#d8ca73',
    500: '#c2b431',
    950: '#000000',
  },
}
SCSS
$custom: #c2b431;
$custom-light: #d8ca73;
$custom-dark: #000000;
JSON
{
  "hex": "#c2b431",
  "rgb": {
    "r": 194,
    "g": 180,
    "b": 49
  },
  "hsl": {
    "h": 54.207,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.75934,
    "c": 0.14449,
    "h": 103
  },
  "luminance": 0.44334
}

Semantic roles & 50–950 ramp

primary
#C2B431
secondary
#838ACC
accent
#54E345
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C2B431

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

Preview Lab → · Contrast checker → · Palette generator →

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