#C7A826#C7A826

#C7A826 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.8% C 0.141 H 94.5°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#C7A826
RGBrgb(199, 168, 38)
HSLhsl(48, 68%, 46%)
HSVhsv(48, 81%, 78%)
CMYKcmyk(0%, 15.6%, 80.9%, 22%)
CIE-LABlab(69.68, -1.25, 65.32)
CIE-LCHlch(69.68, 65.33, 91.09°)
OKLaboklab(73.82% -0.011 0.141)
OKLCHoklch(73.82% 0.141 94.5)
XYZxyz(37.9078, 40.2896, 7.6134)
Luminance0.4029 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7A826 #2645C7
analogous
#C75826 #C7A826 #96C726
triadic
#C7A826 #26C7A8 #A826C7
tetradic
#C7A826 #26C758 #2645C7 #C72696
square
#C7A826 #26C758 #2645C7 #C72696
split-complementary
#C7A826 #2696C7 #5826C7
monochromatic
#605112 #947D1C #C7A826 #DDC14D #E7D381

Accessibility & contrast

On white

2.32
#C7A826 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#C7A826 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7A826
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7A826#FFFFFF#000000##000000
##C7A8261.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA500
Deuteranopia (green-blind)
#C2AE2F
Tritanopia (blue-blind)
#D89A90
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #c7a826;
/* rgb */ color: rgb(199, 168, 38);
/* oklch */ color: oklch(73.8% 0.141 94.5);
Tailwind
colors: {
  custom: {
    50: '#ddc16d',
    500: '#c7a826',
    950: '#000000',
  },
}
SCSS
$custom: #c7a826;
$custom-light: #ddc16d;
$custom-dark: #000000;
JSON
{
  "hex": "#c7a826",
  "rgb": {
    "r": 199,
    "g": 168,
    "b": 38
  },
  "hsl": {
    "h": 48.447,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.73823,
    "c": 0.1414,
    "h": 94.5
  },
  "luminance": 0.40287
}

Semantic roles & 50–950 ramp

primary
#C7A826
secondary
#798ACF
accent
#5EEB3D
background
#FEFBF6
surface
#FCF7EC
border
#D5D0C7
text
#161208
muted
#84817B

Preview Lab

Preview with #C7A826

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

Preview Lab → · Contrast checker → · Palette generator →

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