#C2B138#C2B138

#C2B138 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.3% C 0.138 H 101.1°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#C2B138
RGBrgb(194, 177, 56)
HSLhsl(53, 55%, 49%)
HSVhsv(53, 71%, 76%)
CMYKcmyk(0%, 8.8%, 71.1%, 23.9%)
CIE-LABlab(71.69, -7.43, 60.83)
CIE-LCHlch(71.69, 61.28, 96.97°)
OKLaboklab(75.34% -0.0265 0.1351)
OKLCHoklch(75.34% 0.138 101.1)
XYZxyz(38.6858, 43.2009, 10.0415)
Luminance0.4320 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2B138 #3849C2
analogous
#C26C38 #C2B138 #8EC238
triadic
#C2B138 #38C2B1 #B138C2
tetradic
#C2B138 #38C26C #3849C2 #C2388E
square
#C2B138 #38C26C #3849C2 #C2388E
split-complementary
#C2B138 #388EC2 #6C38C2
monochromatic
#635A1D #93862A #C2B138 #D2C565 #E0D794

Accessibility & contrast

On white

2.18
#C2B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.64
#C2B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2B138
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2B138#FFFFFF#000000##000000
##C2B1381.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC25
Deuteranopia (green-blind)
#C6B340
Tritanopia (blue-blind)
#D1A499
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #c2b138;
/* rgb */ color: rgb(194, 177, 56);
/* oklch */ color: oklch(75.3% 0.138 101.1);
Tailwind
colors: {
  custom: {
    50: '#d8c876',
    500: '#c2b138',
    950: '#000000',
  },
}
SCSS
$custom: #c2b138;
$custom-light: #d8c876;
$custom-dark: #000000;
JSON
{
  "hex": "#c2b138",
  "rgb": {
    "r": 194,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 52.609,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.75343,
    "c": 0.13771,
    "h": 101.1
  },
  "luminance": 0.43199
}

Semantic roles & 50–950 ramp

primary
#C2B138
secondary
#8A92CB
accent
#5CDF49
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C2B138

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

Preview Lab → · Contrast checker → · Palette generator →

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