#C7B538#C7B538

#C7B538 is a light, vivid yellow. Relative luminance 0.455; OKLCH L 76.7% C 0.141 H 100.9°. Best body text is #000000 at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#C7B538
RGBrgb(199, 181, 56)
HSLhsl(52, 56%, 50%)
HSVhsv(52, 72%, 78%)
CMYKcmyk(0%, 9%, 71.9%, 22%)
CIE-LABlab(73.20, -7.35, 62.47)
CIE-LCHlch(73.20, 62.90, 96.71°)
OKLaboklab(76.65% -0.0266 0.1384)
OKLCHoklch(76.65% 0.141 100.9)
XYZxyz(40.7927, 45.4772, 10.3699)
Luminance0.4547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7B538 #384AC7
analogous
#C76E38 #C7B538 #91C738
triadic
#C7B538 #38C7B5 #B538C7
tetradic
#C7B538 #38C76E #384AC7 #C73891
square
#C7B538 #38C76E #384AC7 #C73891
split-complementary
#C7B538 #3891C7 #6E38C7
monochromatic
#675E1D #978A2B #C7B538 #D4C768 #E2D998

Accessibility & contrast

On white

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

On black

10.10
#C7B538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7B538
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7B538#FFFFFF#000000##000000
##C7B5381.002.0810.1010.10
#FFFFFF2.081.0021.0021.00
#00000010.1021.001.001.00
##00000010.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B023
Deuteranopia (green-blind)
#CBB740
Tritanopia (blue-blind)
#D6A89C
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #c7b538;
/* rgb */ color: rgb(199, 181, 56);
/* oklch */ color: oklch(76.7% 0.141 100.9);
Tailwind
colors: {
  custom: {
    50: '#dcca77',
    500: '#c7b538',
    950: '#000000',
  },
}
SCSS
$custom: #c7b538;
$custom-light: #dcca77;
$custom-dark: #000000;
JSON
{
  "hex": "#c7b538",
  "rgb": {
    "r": 199,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 52.448,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.76651,
    "c": 0.14094,
    "h": 100.9
  },
  "luminance": 0.45475
}

Semantic roles & 50–950 ramp

primary
#C7B538
secondary
#8D95CD
accent
#5BDF48
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #C7B538

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

Preview Lab → · Contrast checker → · Palette generator →

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