#A7AF2C#A7AF2C

#A7AF2C is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.5% C 0.147 H 113.1°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#A7AF2C
RGBrgb(167, 175, 44)
HSLhsl(64, 60%, 43%)
HSVhsv(64, 75%, 69%)
CMYKcmyk(4.6%, 0%, 74.9%, 31.4%)
CIE-LABlab(68.79, -18.66, 61.56)
CIE-LCHlch(68.79, 64.33, 106.86°)
OKLaboklab(72.46% -0.0577 0.1355)
OKLCHoklch(72.46% 0.147 113.1)
XYZxyz(31.7219, 39.0580, 8.2503)
Luminance0.3906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7AF2C #342CAF
analogous
#AF752C #A7AF2C #65AF2C
triadic
#A7AF2C #2CA7AF #AF2CA7
tetradic
#A7AF2C #2CAF75 #342CAF #AF2C65
square
#A7AF2C #2CAF75 #342CAF #AF2C65
split-complementary
#A7AF2C #2C65AF #752CAF
monochromatic
#4A4D13 #787E20 #A7AF2C #C8D147 #D7DD78

Accessibility & contrast

On white

2.38
#A7AF2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#A7AF2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7AF2C
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7AF2C#FFFFFF#000000##000000
##A7AF2C1.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA60E
Deuteranopia (green-blind)
#BCA937
Tritanopia (blue-blind)
#B2A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a7af2c;
/* rgb */ color: rgb(167, 175, 44);
/* oklch */ color: oklch(72.5% 0.147 113.1);
Tailwind
colors: {
  custom: {
    50: '#c5c670',
    500: '#a7af2c',
    950: '#000000',
  },
}
SCSS
$custom: #a7af2c;
$custom-light: #c5c670;
$custom-dark: #000000;
JSON
{
  "hex": "#a7af2c",
  "rgb": {
    "r": 167,
    "g": 175,
    "b": 44
  },
  "hsl": {
    "h": 63.664,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.72458,
    "c": 0.14726,
    "h": 113.1
  },
  "luminance": 0.39057
}

Semantic roles & 50–950 ramp

primary
#A7AF2C
secondary
#7772C5
accent
#45E34E
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7AF2C

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

Preview Lab → · Contrast checker → · Palette generator →

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