#C2B151#C2B151

#C2B151 is a light, moderate yellow. Relative luminance 0.435; OKLCH L 75.6% C 0.118 H 99.4°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#C2B151
RGBrgb(194, 177, 81)
HSLhsl(51, 48%, 54%)
HSVhsv(51, 58%, 76%)
CMYKcmyk(0%, 8.8%, 58.2%, 23.9%)
CIE-LABlab(71.90, -5.89, 50.36)
CIE-LCHlch(71.90, 50.70, 96.67°)
OKLaboklab(75.58% -0.0193 0.1167)
OKLCHoklch(75.58% 0.118 99.4)
XYZxyz(39.4570, 43.5093, 14.1027)
Luminance0.4351 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2B151 #5162C2
analogous
#C27951 #C2B151 #9BC251
triadic
#C2B151 #51C2B1 #B151C2
tetradic
#C2B151 #51C279 #5162C2 #C2519B
square
#C2B151 #51C279 #5162C2 #C2519B
split-complementary
#C2B151 #519BC2 #7951C2
monochromatic
#716628 #9E8F37 #C2B151 #D2C57E #E2DAAC

Accessibility & contrast

On white

2.16
#C2B151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.70
#C2B151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2B151
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2B151#FFFFFF#000000##000000
##C2B1511.002.169.709.70
#FFFFFF2.161.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AD47
Deuteranopia (green-blind)
#C5B356
Tritanopia (blue-blind)
#D0A69C
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #c2b151;
/* rgb */ color: rgb(194, 177, 81);
/* oklch */ color: oklch(75.6% 0.118 99.4);
Tailwind
colors: {
  custom: {
    50: '#d7c885',
    500: '#c2b151',
    950: '#000000',
  },
}
SCSS
$custom: #c2b151;
$custom-light: #d7c885;
$custom-dark: #000000;
JSON
{
  "hex": "#c2b151",
  "rgb": {
    "r": 194,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 50.973,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.75575,
    "c": 0.11831,
    "h": 99.4
  },
  "luminance": 0.43508
}

Semantic roles & 50–950 ramp

primary
#C2B151
secondary
#9FA7D0
accent
#65D850
background
#FDFCF8
surface
#FBF8EF
border
#D4D1CA
text
#15130B
muted
#83827C

Preview Lab

Preview with #C2B151

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

Preview Lab → · Contrast checker → · Palette generator →

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