#C2B338#C2B338

#C2B338 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.8% C 0.139 H 102.2°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#C2B338
RGBrgb(194, 179, 56)
HSLhsl(53, 55%, 49%)
HSVhsv(53, 71%, 76%)
CMYKcmyk(0%, 7.7%, 71.1%, 23.9%)
CIE-LABlab(72.23, -8.47, 61.36)
CIE-LCHlch(72.23, 61.94, 97.86°)
OKLaboklab(75.77% -0.0295 0.1362)
OKLCHoklch(75.77% 0.139 102.2)
XYZxyz(39.0838, 43.9967, 10.1741)
Luminance0.4400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2B338 #3847C2
analogous
#C26E38 #C2B338 #8CC238
triadic
#C2B338 #38C2B3 #B338C2
tetradic
#C2B338 #38C26E #3847C2 #C2388C
square
#C2B338 #38C26E #3847C2 #C2388C
split-complementary
#C2B338 #388CC2 #6E38C2
monochromatic
#635B1D #93872A #C2B338 #D2C765 #E0D894

Accessibility & contrast

On white

2.14
#C2B338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#C2B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2B338
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2B338#FFFFFF#000000##000000
##C2B3381.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD24
Deuteranopia (green-blind)
#C8B440
Tritanopia (blue-blind)
#D1A69B
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #c2b338;
/* rgb */ color: rgb(194, 179, 56);
/* oklch */ color: oklch(75.8% 0.139 102.2);
Tailwind
colors: {
  custom: {
    50: '#d8c976',
    500: '#c2b338',
    950: '#000000',
  },
}
SCSS
$custom: #c2b338;
$custom-light: #d8c976;
$custom-dark: #000000;
JSON
{
  "hex": "#c2b338",
  "rgb": {
    "r": 194,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 53.478,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.75768,
    "c": 0.1394,
    "h": 102.2
  },
  "luminance": 0.43995
}

Semantic roles & 50–950 ramp

primary
#C2B338
secondary
#8A91CB
accent
#59DF49
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #C2B338

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

Preview Lab → · Contrast checker → · Palette generator →

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