#C7B838#C7B838

#C7B838 is a light, vivid yellow. Relative luminance 0.467; OKLCH L 77.3% C 0.143 H 102.5°. Best body text is #000000 at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#C7B838
RGBrgb(199, 184, 56)
HSLhsl(54, 56%, 50%)
HSVhsv(54, 72%, 78%)
CMYKcmyk(0%, 7.5%, 71.9%, 22%)
CIE-LABlab(74.00, -8.90, 63.25)
CIE-LCHlch(74.00, 63.87, 98.01°)
OKLaboklab(77.29% -0.031 0.1401)
OKLCHoklch(77.29% 0.143 102.5)
XYZxyz(41.4093, 46.7104, 10.5754)
Luminance0.4671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7B838 #3847C7
analogous
#C77038 #C7B838 #8FC738
triadic
#C7B838 #38C7B8 #B838C7
tetradic
#C7B838 #38C770 #3847C7 #C7388F
square
#C7B838 #38C770 #3847C7 #C7388F
split-complementary
#C7B838 #388FC7 #7038C7
monochromatic
#67601D #978C2B #C7B838 #D4C968 #E2DA98

Accessibility & contrast

On white

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

On black

10.34
#C7B838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7B838
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7B838#FFFFFF#000000##000000
##C7B8381.002.0310.3410.34
#FFFFFF2.031.0021.0021.00
#00000010.3421.001.001.00
##00000010.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B222
Deuteranopia (green-blind)
#CDB941
Tritanopia (blue-blind)
#D6AB9F
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #c7b838;
/* rgb */ color: rgb(199, 184, 56);
/* oklch */ color: oklch(77.3% 0.143 102.5);
Tailwind
colors: {
  custom: {
    50: '#dccd77',
    500: '#c7b838',
    950: '#000000',
  },
}
SCSS
$custom: #c7b838;
$custom-light: #dccd77;
$custom-dark: #000000;
JSON
{
  "hex": "#c7b838",
  "rgb": {
    "r": 199,
    "g": 184,
    "b": 56
  },
  "hsl": {
    "h": 53.706,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.77286,
    "c": 0.14345,
    "h": 102.5
  },
  "luminance": 0.46709
}

Semantic roles & 50–950 ramp

primary
#C7B838
secondary
#8D94CD
accent
#58DF48
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#151309
muted
#84827B

Preview Lab

Preview with #C7B838

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

Preview Lab → · Contrast checker → · Palette generator →

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