#C7AB26#C7AB26

#C7AB26 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.4% C 0.143 H 96.2°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#C7AB26
RGBrgb(199, 171, 38)
HSLhsl(50, 68%, 46%)
HSVhsv(50, 81%, 78%)
CMYKcmyk(0%, 14.1%, 80.9%, 22%)
CIE-LABlab(70.46, -2.83, 66.01)
CIE-LCHlch(70.46, 66.07, 92.46°)
OKLaboklab(74.45% -0.0155 0.1425)
OKLCHoklch(74.45% 0.143 96.2)
XYZxyz(38.4681, 41.4100, 7.8001)
Luminance0.4141 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7AB26 #2642C7
analogous
#C75B26 #C7AB26 #93C726
triadic
#C7AB26 #26C7AB #AB26C7
tetradic
#C7AB26 #26C75B #2642C7 #C72693
square
#C7AB26 #26C75B #2642C7 #C72693
split-complementary
#C7AB26 #2693C7 #5B26C7
monochromatic
#605312 #947F1C #C7AB26 #DDC44D #E7D581

Accessibility & contrast

On white

2.26
#C7AB26 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#C7AB26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7AB26
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7AB26#FFFFFF#000000##000000
##C7AB261.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA700
Deuteranopia (green-blind)
#C5B030
Tritanopia (blue-blind)
#D79D93
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c7ab26;
/* rgb */ color: rgb(199, 171, 38);
/* oklch */ color: oklch(74.4% 0.143 96.2);
Tailwind
colors: {
  custom: {
    50: '#ddc36d',
    500: '#c7ab26',
    950: '#000000',
  },
}
SCSS
$custom: #c7ab26;
$custom-light: #ddc36d;
$custom-dark: #000000;
JSON
{
  "hex": "#c7ab26",
  "rgb": {
    "r": 199,
    "g": 171,
    "b": 38
  },
  "hsl": {
    "h": 49.565,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.74446,
    "c": 0.1433,
    "h": 96.2
  },
  "luminance": 0.41408
}

Semantic roles & 50–950 ramp

primary
#C7AB26
secondary
#7988CF
accent
#5BEB3D
background
#FEFBF6
surface
#FCF7EC
border
#D5D0C7
text
#161208
muted
#84817B

Preview Lab

Preview with #C7AB26

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

Preview Lab → · Contrast checker → · Palette generator →

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