#C2B731#C2B731

#C2B731 is a light, vivid yellow. Relative luminance 0.456; OKLCH L 76.6% C 0.147 H 104.5°. Best body text is #000000 at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#C2B731
RGBrgb(194, 183, 49)
HSLhsl(55, 60%, 48%)
HSVhsv(55, 75%, 76%)
CMYKcmyk(0%, 5.7%, 74.7%, 23.9%)
CIE-LABlab(73.26, -10.86, 64.86)
CIE-LCHlch(73.26, 65.76, 99.51°)
OKLaboklab(76.58% -0.0369 0.1424)
OKLCHoklch(76.58% 0.147 104.5)
XYZxyz(39.7377, 45.5597, 9.6059)
Luminance0.4556 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2B731 #313CC2
analogous
#C26E31 #C2B731 #85C231
triadic
#C2B731 #31C2B7 #B731C2
tetradic
#C2B731 #31C26E #313CC2 #C23185
square
#C2B731 #31C26E #313CC2 #C23185
split-complementary
#C2B731 #3185C2 #6E31C2
monochromatic
#605B18 #918925 #C2B731 #D6CC5B #E2DB8C

Accessibility & contrast

On white

2.08
#C2B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.11
#C2B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2B731
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2B731#FFFFFF#000000##000000
##C2B7311.002.0810.1110.11
#FFFFFF2.081.0021.0021.00
#00000010.1121.001.001.00
##00000010.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B115
Deuteranopia (green-blind)
#CBB73B
Tritanopia (blue-blind)
#D1AA9D
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #c2b731;
/* rgb */ color: rgb(194, 183, 49);
/* oklch */ color: oklch(76.6% 0.147 104.5);
Tailwind
colors: {
  custom: {
    50: '#d8cc73',
    500: '#c2b731',
    950: '#000000',
  },
}
SCSS
$custom: #c2b731;
$custom-light: #d8cc73;
$custom-dark: #000000;
JSON
{
  "hex": "#c2b731",
  "rgb": {
    "r": 194,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 55.448,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.76576,
    "c": 0.14709,
    "h": 104.5
  },
  "luminance": 0.45558
}

Semantic roles & 50–950 ramp

primary
#C2B731
secondary
#8388CC
accent
#51E345
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C2B731

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

Preview Lab → · Contrast checker → · Palette generator →

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