#C2B531#C2B531

#C2B531 is a light, vivid yellow. Relative luminance 0.447; OKLCH L 76.1% C 0.145 H 103.5°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#C2B531
RGBrgb(194, 181, 49)
HSLhsl(55, 60%, 48%)
HSVhsv(55, 75%, 76%)
CMYKcmyk(0%, 6.7%, 74.7%, 23.9%)
CIE-LABlab(72.72, -9.83, 64.36)
CIE-LCHlch(72.72, 65.10, 98.69°)
OKLaboklab(76.15% -0.034 0.1413)
OKLCHoklch(76.15% 0.145 103.5)
XYZxyz(39.3281, 44.7405, 9.4693)
Luminance0.4474 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2B531 #313EC2
analogous
#C26D31 #C2B531 #86C231
triadic
#C2B531 #31C2B5 #B531C2
tetradic
#C2B531 #31C26D #313EC2 #C23186
square
#C2B531 #31C26D #313EC2 #C23186
split-complementary
#C2B531 #3186C2 #6D31C2
monochromatic
#605A18 #918725 #C2B531 #D6CA5B #E2DA8C

Accessibility & contrast

On white

2.11
#C2B531 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.95
#C2B531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2B531
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2B531#FFFFFF#000000##000000
##C2B5311.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF16
Deuteranopia (green-blind)
#CAB53B
Tritanopia (blue-blind)
#D1A89C
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #c2b531;
/* rgb */ color: rgb(194, 181, 49);
/* oklch */ color: oklch(76.1% 0.145 103.5);
Tailwind
colors: {
  custom: {
    50: '#d8ca73',
    500: '#c2b531',
    950: '#000000',
  },
}
SCSS
$custom: #c2b531;
$custom-light: #d8ca73;
$custom-dark: #000000;
JSON
{
  "hex": "#c2b531",
  "rgb": {
    "r": 194,
    "g": 181,
    "b": 49
  },
  "hsl": {
    "h": 54.621,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.76147,
    "c": 0.14534,
    "h": 103.5
  },
  "luminance": 0.44739
}

Semantic roles & 50–950 ramp

primary
#C2B531
secondary
#8389CC
accent
#53E345
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C2B531

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

Preview Lab → · Contrast checker → · Palette generator →

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