#C2B331#C2B331

#C2B331 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.7% C 0.144 H 102.5°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#C2B331
RGBrgb(194, 179, 49)
HSLhsl(54, 60%, 48%)
HSVhsv(54, 75%, 76%)
CMYKcmyk(0%, 7.7%, 74.7%, 23.9%)
CIE-LABlab(72.18, -8.80, 63.85)
CIE-LCHlch(72.18, 64.46, 97.84°)
OKLaboklab(75.72% -0.0311 0.1402)
OKLCHoklch(75.72% 0.144 102.5)
XYZxyz(38.9244, 43.9330, 9.3347)
Luminance0.4393 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2B331 #3140C2
analogous
#C26A31 #C2B331 #89C231
triadic
#C2B331 #31C2B3 #B331C2
tetradic
#C2B331 #31C26A #3140C2 #C23189
square
#C2B331 #31C26A #3140C2 #C23189
split-complementary
#C2B331 #3189C2 #6A31C2
monochromatic
#605918 #918625 #C2B331 #D6C95B #E2D98C

Accessibility & contrast

On white

2.15
#C2B331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#C2B331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2B331
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2B331#FFFFFF#000000##000000
##C2B3311.002.159.799.79
#FFFFFF2.151.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD17
Deuteranopia (green-blind)
#C8B43A
Tritanopia (blue-blind)
#D1A69A
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #c2b331;
/* rgb */ color: rgb(194, 179, 49);
/* oklch */ color: oklch(75.7% 0.144 102.5);
Tailwind
colors: {
  custom: {
    50: '#d8c973',
    500: '#c2b331',
    950: '#000000',
  },
}
SCSS
$custom: #c2b331;
$custom-light: #d8c973;
$custom-dark: #000000;
JSON
{
  "hex": "#c2b331",
  "rgb": {
    "r": 194,
    "g": 179,
    "b": 49
  },
  "hsl": {
    "h": 53.793,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.7572,
    "c": 0.14364,
    "h": 102.5
  },
  "luminance": 0.43931
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C2B331

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

Preview Lab → · Contrast checker → · Palette generator →

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