#C2B540#C2B540

#C2B540 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.3% C 0.136 H 102.9°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#C2B540
RGBrgb(194, 181, 64)
HSLhsl(54, 52%, 51%)
HSVhsv(54, 67%, 76%)
CMYKcmyk(0%, 6.7%, 67%, 23.9%)
CIE-LABlab(72.82, -9.09, 58.81)
CIE-LCHlch(72.82, 59.51, 98.78°)
OKLaboklab(76.26% -0.0304 0.1322)
OKLCHoklch(76.26% 0.136 102.9)
XYZxyz(39.6990, 44.8888, 11.4228)
Luminance0.4489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2B540 #404DC2
analogous
#C27440 #C2B540 #8EC240
triadic
#C2B540 #40C2B5 #B540C2
tetradic
#C2B540 #40C274 #404DC2 #C2408E
square
#C2B540 #40C274 #404DC2 #C2408E
split-complementary
#C2B540 #408EC2 #7440C2
monochromatic
#676021 #958B30 #C2B540 #D1C76E #E0D99D

Accessibility & contrast

On white

2.10
#C2B540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#C2B540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2B540
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2B540#FFFFFF#000000##000000
##C2B5401.002.109.989.98
#FFFFFF2.101.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF30
Deuteranopia (green-blind)
#C9B547
Tritanopia (blue-blind)
#D0A99D
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #c2b540;
/* rgb */ color: rgb(194, 181, 64);
/* oklch */ color: oklch(76.3% 0.136 102.9);
Tailwind
colors: {
  custom: {
    50: '#d8ca7b',
    500: '#c2b540',
    950: '#000000',
  },
}
SCSS
$custom: #c2b540;
$custom-light: #d8ca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#c2b540",
  "rgb": {
    "r": 194,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 54,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.76256,
    "c": 0.13568,
    "h": 102.9
  },
  "luminance": 0.44887
}

Semantic roles & 50–950 ramp

primary
#C2B540
secondary
#9298CC
accent
#5BDB4D
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C2B540

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

Preview Lab → · Contrast checker → · Palette generator →

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