#C2B240#C2B240

#C2B240 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.6% C 0.133 H 101.2°. Best body text is #000000 at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#C2B240
RGBrgb(194, 178, 64)
HSLhsl(53, 52%, 51%)
HSVhsv(53, 67%, 76%)
CMYKcmyk(0%, 8.2%, 67%, 23.9%)
CIE-LABlab(72.02, -7.53, 57.98)
CIE-LCHlch(72.02, 58.47, 97.40°)
OKLaboklab(75.62% -0.0259 0.1305)
OKLCHoklch(75.62% 0.133 101.2)
XYZxyz(39.0956, 43.6820, 11.2216)
Luminance0.4368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2B240 #4050C2
analogous
#C27140 #C2B240 #91C240
triadic
#C2B240 #40C2B2 #B240C2
tetradic
#C2B240 #40C271 #4050C2 #C24091
square
#C2B240 #40C271 #4050C2 #C24091
split-complementary
#C2B240 #4091C2 #7140C2
monochromatic
#675E21 #958930 #C2B240 #D1C56E #E0D79D

Accessibility & contrast

On white

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

On black

9.74
#C2B240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2B240
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2B240#FFFFFF#000000##000000
##C2B2401.002.169.749.74
#FFFFFF2.161.0021.0021.00
#0000009.7421.001.001.00
##0000009.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD31
Deuteranopia (green-blind)
#C7B347
Tritanopia (blue-blind)
#D0A69B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #c2b240;
/* rgb */ color: rgb(194, 178, 64);
/* oklch */ color: oklch(75.6% 0.133 101.2);
Tailwind
colors: {
  custom: {
    50: '#d8c87b',
    500: '#c2b240',
    950: '#000000',
  },
}
SCSS
$custom: #c2b240;
$custom-light: #d8c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#c2b240",
  "rgb": {
    "r": 194,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 52.615,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.75618,
    "c": 0.13304,
    "h": 101.2
  },
  "luminance": 0.4368
}

Semantic roles & 50–950 ramp

primary
#C2B240
secondary
#9299CC
accent
#5EDB4D
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C2B240

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

Preview Lab → · Contrast checker → · Palette generator →

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