#C2B931#C2B931

#C2B931 is a light, vivid yellow. Relative luminance 0.464; OKLCH L 77.0% C 0.149 H 105.5°. Best body text is #000000 at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#C2B931
RGBrgb(194, 185, 49)
HSLhsl(56, 60%, 48%)
HSVhsv(56, 75%, 76%)
CMYKcmyk(0%, 4.6%, 74.7%, 23.9%)
CIE-LABlab(73.80, -11.89, 65.36)
CIE-LCHlch(73.80, 66.44, 100.31°)
OKLaboklab(77.01% -0.0398 0.1435)
OKLCHoklch(77.01% 0.149 105.5)
XYZxyz(40.1532, 46.3905, 9.7443)
Luminance0.4639 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2B931 #313AC2
analogous
#C27131 #C2B931 #82C231
triadic
#C2B931 #31C2B9 #B931C2
tetradic
#C2B931 #31C271 #313AC2 #C23182
square
#C2B931 #31C271 #313AC2 #C23182
split-complementary
#C2B931 #3182C2 #7131C2
monochromatic
#605C18 #918A25 #C2B931 #D6CE5B #E2DC8C

Accessibility & contrast

On white

2.04
#C2B931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.28
#C2B931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2B931
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2B931#FFFFFF#000000##000000
##C2B9311.002.0410.2810.28
#FFFFFF2.041.0021.0021.00
#00000010.2821.001.001.00
##00000010.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B214
Deuteranopia (green-blind)
#CDB83B
Tritanopia (blue-blind)
#D1AC9F
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #c2b931;
/* rgb */ color: rgb(194, 185, 49);
/* oklch */ color: oklch(77.0% 0.149 105.5);
Tailwind
colors: {
  custom: {
    50: '#d8cd74',
    500: '#c2b931',
    950: '#000000',
  },
}
SCSS
$custom: #c2b931;
$custom-light: #d8cd74;
$custom-dark: #000000;
JSON
{
  "hex": "#c2b931",
  "rgb": {
    "r": 194,
    "g": 185,
    "b": 49
  },
  "hsl": {
    "h": 56.276,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.77005,
    "c": 0.14887,
    "h": 105.5
  },
  "luminance": 0.46389
}

Semantic roles & 50–950 ramp

primary
#C2B931
secondary
#8387CC
accent
#4FE345
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C2B931

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

Preview Lab → · Contrast checker → · Palette generator →

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