#C7AF38#C7AF38

#C7AF38 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 75.4% C 0.136 H 97.5°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#C7AF38
RGBrgb(199, 175, 56)
HSLhsl(50, 56%, 50%)
HSVhsv(50, 72%, 78%)
CMYKcmyk(0%, 12.1%, 71.9%, 22%)
CIE-LABlab(71.62, -4.22, 60.91)
CIE-LCHlch(71.62, 61.06, 93.96°)
OKLaboklab(75.39% -0.0177 0.1351)
OKLCHoklch(75.39% 0.136 97.5)
XYZxyz(39.5989, 43.0896, 9.9719)
Luminance0.4309 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7AF38 #3850C7
analogous
#C76838 #C7AF38 #97C738
triadic
#C7AF38 #38C7AF #AF38C7
tetradic
#C7AF38 #38C768 #3850C7 #C73897
square
#C7AF38 #38C768 #3850C7 #C73897
split-complementary
#C7AF38 #3897C7 #6838C7
monochromatic
#675B1D #97852B #C7AF38 #D4C268 #E2D598

Accessibility & contrast

On white

2.18
#C7AF38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#C7AF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7AF38
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7AF38#FFFFFF#000000##000000
##C7AF381.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB25
Deuteranopia (green-blind)
#C7B33F
Tritanopia (blue-blind)
#D7A297
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #c7af38;
/* rgb */ color: rgb(199, 175, 56);
/* oklch */ color: oklch(75.4% 0.136 97.5);
Tailwind
colors: {
  custom: {
    50: '#dcc676',
    500: '#c7af38',
    950: '#000000',
  },
}
SCSS
$custom: #c7af38;
$custom-light: #dcc676;
$custom-dark: #000000;
JSON
{
  "hex": "#c7af38",
  "rgb": {
    "r": 199,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 49.93,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.75391,
    "c": 0.13626,
    "h": 97.5
  },
  "luminance": 0.43088
}

Semantic roles & 50–950 ramp

primary
#C7AF38
secondary
#8D98CD
accent
#62DF48
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #C7AF38

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

Preview Lab → · Contrast checker → · Palette generator →

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