#C7B826#C7B826

#C7B826 is a light, vivid yellow. Relative luminance 0.466; OKLCH L 77.2% C 0.153 H 103.1°. Best body text is #000000 at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#C7B826
RGBrgb(199, 184, 38)
HSLhsl(54, 68%, 46%)
HSVhsv(54, 81%, 78%)
CMYKcmyk(0%, 7.5%, 80.9%, 22%)
CIE-LABlab(73.91, -9.61, 69.01)
CIE-LCHlch(73.91, 69.68, 97.93°)
OKLaboklab(77.18% -0.0346 0.149)
OKLCHoklch(77.18% 0.153 103.1)
XYZxyz(41.0455, 46.5649, 8.6592)
Luminance0.4656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7B826 #2635C7
analogous
#C76826 #C7B826 #86C726
triadic
#C7B826 #26C7B8 #B826C7
tetradic
#C7B826 #26C768 #2635C7 #C72686
square
#C7B826 #26C768 #2635C7 #C72686
split-complementary
#C7B826 #2686C7 #6826C7
monochromatic
#605912 #94881C #C7B826 #DDD04D #E7DD81

Accessibility & contrast

On white

2.04
#C7B826 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.31
#C7B826 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7B826
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7B826#FFFFFF#000000##000000
##C7B8261.002.0410.3110.31
#FFFFFF2.041.0021.0021.00
#00000010.3121.001.001.00
##00000010.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB200
Deuteranopia (green-blind)
#CEB933
Tritanopia (blue-blind)
#D7AA9E
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #c7b826;
/* rgb */ color: rgb(199, 184, 38);
/* oklch */ color: oklch(77.2% 0.153 103.1);
Tailwind
colors: {
  custom: {
    50: '#dccc6f',
    500: '#c7b826',
    950: '#000000',
  },
}
SCSS
$custom: #c7b826;
$custom-light: #dccc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#c7b826",
  "rgb": {
    "r": 199,
    "g": 184,
    "b": 38
  },
  "hsl": {
    "h": 54.41,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.77182,
    "c": 0.15293,
    "h": 103.1
  },
  "luminance": 0.46563
}

Semantic roles & 50–950 ramp

primary
#C7B826
secondary
#7981CF
accent
#4DEB3D
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161308
muted
#84827B

Preview Lab

Preview with #C7B826

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

Preview Lab → · Contrast checker → · Palette generator →

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