#C2BA31#C2BA31

#C2BA31 is a light, vivid yellow. Relative luminance 0.468; OKLCH L 77.2% C 0.150 H 106.0°. Best body text is #000000 at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#C2BA31
RGBrgb(194, 186, 49)
HSLhsl(57, 60%, 48%)
HSVhsv(57, 75%, 76%)
CMYKcmyk(0%, 4.1%, 74.7%, 23.9%)
CIE-LABlab(74.07, -12.40, 65.62)
CIE-LCHlch(74.07, 66.78, 100.70°)
OKLaboklab(77.22% -0.0412 0.144)
OKLCHoklch(77.22% 0.15 106)
XYZxyz(40.3631, 46.8104, 9.8143)
Luminance0.4681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2BA31 #3139C2
analogous
#C27231 #C2BA31 #81C231
triadic
#C2BA31 #31C2BA #BA31C2
tetradic
#C2BA31 #31C272 #3139C2 #C23181
square
#C2BA31 #31C272 #3139C2 #C23181
split-complementary
#C2BA31 #3181C2 #7231C2
monochromatic
#605C18 #918B25 #C2BA31 #D6CF5B #E2DD8C

Accessibility & contrast

On white

2.03
#C2BA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.36
#C2BA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2BA31
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2BA31#FFFFFF#000000##000000
##C2BA311.002.0310.3610.36
#FFFFFF2.031.0021.0021.00
#00000010.3621.001.001.00
##00000010.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB313
Deuteranopia (green-blind)
#CDB93C
Tritanopia (blue-blind)
#D0ADA0
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #c2ba31;
/* rgb */ color: rgb(194, 186, 49);
/* oklch */ color: oklch(77.2% 0.150 106.0);
Tailwind
colors: {
  custom: {
    50: '#d8ce74',
    500: '#c2ba31',
    950: '#000000',
  },
}
SCSS
$custom: #c2ba31;
$custom-light: #d8ce74;
$custom-dark: #000000;
JSON
{
  "hex": "#c2ba31",
  "rgb": {
    "r": 194,
    "g": 186,
    "b": 49
  },
  "hsl": {
    "h": 56.69,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.7722,
    "c": 0.14977,
    "h": 106
  },
  "luminance": 0.46809
}

Semantic roles & 50–950 ramp

primary
#C2BA31
secondary
#8387CC
accent
#4EE345
background
#FDFCF7
surface
#FBF9ED
border
#D4D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C2BA31

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

Preview Lab → · Contrast checker → · Palette generator →

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