#C5AF3F#C5AF3F

#C5AF3F is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.3% C 0.131 H 98.0°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#C5AF3F
RGBrgb(197, 175, 63)
HSLhsl(50, 54%, 51%)
HSVhsv(50, 68%, 77%)
CMYKcmyk(0%, 11.2%, 68%, 22.7%)
CIE-LABlab(71.48, -4.72, 57.93)
CIE-LCHlch(71.48, 58.12, 94.66°)
OKLaboklab(75.26% -0.0182 0.1301)
OKLCHoklch(75.26% 0.131 98)
XYZxyz(39.2549, 42.8910, 10.9128)
Luminance0.4289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5AF3F #3F55C5
analogous
#C56C3F #C5AF3F #98C53F
triadic
#C5AF3F #3FC5AF #AF3FC5
tetradic
#C5AF3F #3FC56C #3F55C5 #C53F98
square
#C5AF3F #3FC56C #3F55C5 #C53F98
split-complementary
#C5AF3F #3F98C5 #6C3FC5
monochromatic
#6A5E20 #99872E #C5AF3F #D3C36E #E1D69D

Accessibility & contrast

On white

2.19
#C5AF3F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#C5AF3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5AF3F
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5AF3F#FFFFFF#000000##000000
##C5AF3F1.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB30
Deuteranopia (green-blind)
#C6B245
Tritanopia (blue-blind)
#D4A298
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #c5af3f;
/* rgb */ color: rgb(197, 175, 63);
/* oklch */ color: oklch(75.3% 0.131 98.0);
Tailwind
colors: {
  custom: {
    50: '#dac67a',
    500: '#c5af3f',
    950: '#000000',
  },
}
SCSS
$custom: #c5af3f;
$custom-light: #dac67a;
$custom-dark: #000000;
JSON
{
  "hex": "#c5af3f",
  "rgb": {
    "r": 197,
    "g": 175,
    "b": 63
  },
  "hsl": {
    "h": 50.149,
    "s": 53.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.75256,
    "c": 0.13139,
    "h": 98
  },
  "luminance": 0.42889
}

Semantic roles & 50–950 ramp

primary
#C5AF3F
secondary
#929CCE
accent
#63DD4B
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C5AF3F

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

Preview Lab → · Contrast checker → · Palette generator →

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