#C2B040#C2B040

#C2B040 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.2% C 0.131 H 100.1°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#C2B040
RGBrgb(194, 176, 64)
HSLhsl(52, 52%, 51%)
HSVhsv(52, 67%, 76%)
CMYKcmyk(0%, 9.3%, 67%, 23.9%)
CIE-LABlab(71.48, -6.48, 57.43)
CIE-LCHlch(71.48, 57.79, 96.44°)
OKLaboklab(75.2% -0.023 0.1293)
OKLCHoklch(75.2% 0.131 100.1)
XYZxyz(38.7006, 42.8919, 11.0899)
Luminance0.4289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2B040 #4052C2
analogous
#C26F40 #C2B040 #93C240
triadic
#C2B040 #40C2B0 #B040C2
tetradic
#C2B040 #40C26F #4052C2 #C24093
square
#C2B040 #40C26F #4052C2 #C24093
split-complementary
#C2B040 #4093C2 #6F40C2
monochromatic
#675D21 #958730 #C2B040 #D1C36E #E0D69D

Accessibility & contrast

On white

2.19
#C2B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#C2B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2B040
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2B040#FFFFFF#000000##000000
##C2B0401.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB31
Deuteranopia (green-blind)
#C5B246
Tritanopia (blue-blind)
#D1A499
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #c2b040;
/* rgb */ color: rgb(194, 176, 64);
/* oklch */ color: oklch(75.2% 0.131 100.1);
Tailwind
colors: {
  custom: {
    50: '#d8c77b',
    500: '#c2b040',
    950: '#000000',
  },
}
SCSS
$custom: #c2b040;
$custom-light: #d8c77b;
$custom-dark: #000000;
JSON
{
  "hex": "#c2b040",
  "rgb": {
    "r": 194,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 51.692,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.75195,
    "c": 0.13134,
    "h": 100.1
  },
  "luminance": 0.4289
}

Semantic roles & 50–950 ramp

primary
#C2B040
secondary
#929ACC
accent
#60DB4D
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C2B040

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

Preview Lab → · Contrast checker → · Palette generator →

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