#C7A438#C7A438

#C7A438 is a light, vivid yellow. Relative luminance 0.390; OKLCH L 73.1% C 0.129 H 90.5°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#C7A438
RGBrgb(199, 164, 56)
HSLhsl(45, 56%, 50%)
HSVhsv(45, 72%, 78%)
CMYKcmyk(0%, 17.6%, 71.9%, 22%)
CIE-LABlab(68.74, 1.62, 58.06)
CIE-LCHlch(68.74, 58.08, 88.40°)
OKLaboklab(73.12% -0.001 0.1291)
OKLCHoklch(73.12% 0.129 90.5)
XYZxyz(37.5445, 38.9808, 9.2872)
Luminance0.3898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7A438 #385BC7
analogous
#C75D38 #C7A438 #A2C738
triadic
#C7A438 #38C7A4 #A438C7
tetradic
#C7A438 #38C75D #385BC7 #C738A2
square
#C7A438 #38C75D #385BC7 #C738A2
split-complementary
#C7A438 #38A2C7 #5D38C7
monochromatic
#67551D #977D2B #C7A438 #D4BA68 #E2D098

Accessibility & contrast

On white

2.39
#C7A438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#C7A438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7A438
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7A438#FFFFFF#000000##000000
##C7A4381.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A228
Deuteranopia (green-blind)
#BFAC3E
Tritanopia (blue-blind)
#D7968E
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c7a438;
/* rgb */ color: rgb(199, 164, 56);
/* oklch */ color: oklch(73.1% 0.129 90.5);
Tailwind
colors: {
  custom: {
    50: '#dcbe75',
    500: '#c7a438',
    950: '#000000',
  },
}
SCSS
$custom: #c7a438;
$custom-light: #dcbe75;
$custom-dark: #000000;
JSON
{
  "hex": "#c7a438",
  "rgb": {
    "r": 199,
    "g": 164,
    "b": 56
  },
  "hsl": {
    "h": 45.315,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.73116,
    "c": 0.12908,
    "h": 90.5
  },
  "luminance": 0.38979
}

Semantic roles & 50–950 ramp

primary
#C7A438
secondary
#8D9DCD
accent
#6DDF48
background
#FEFBF7
surface
#FCF6ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #C7A438

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

Preview Lab → · Contrast checker → · Palette generator →

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