#A7AF2B#A7AF2B

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

Color values

HEX#A7AF2B
RGBrgb(167, 175, 43)
HSLhsl(64, 61%, 43%)
HSVhsv(64, 75%, 69%)
CMYKcmyk(4.6%, 0%, 75.4%, 31.4%)
CIE-LABlab(68.79, -18.71, 61.89)
CIE-LCHlch(68.79, 64.66, 106.82°)
OKLaboklab(72.45% -0.0579 0.136)
OKLCHoklch(72.45% 0.148 113.1)
XYZxyz(31.7034, 39.0506, 8.1525)
Luminance0.3905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7AF2B #332BAF
analogous
#AF752B #A7AF2B #65AF2B
triadic
#A7AF2B #2BA7AF #AF2BA7
tetradic
#A7AF2B #2BAF75 #332BAF #AF2B65
square
#A7AF2B #2BAF75 #332BAF #AF2B65
split-complementary
#A7AF2B #2B65AF #752BAF
monochromatic
#494D13 #787E1F #A7AF2B #C9D146 #D7DE77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7AF2B#FFFFFF#000000##000000
##A7AF2B1.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)
#BCA60B
Deuteranopia (green-blind)
#BCA936
Tritanopia (blue-blind)
#B2A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a7af2b;
/* rgb */ color: rgb(167, 175, 43);
/* oklch */ color: oklch(72.5% 0.148 113.1);
Tailwind
colors: {
  custom: {
    50: '#c5c66f',
    500: '#a7af2b',
    950: '#000000',
  },
}
SCSS
$custom: #a7af2b;
$custom-light: #c5c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#a7af2b",
  "rgb": {
    "r": 167,
    "g": 175,
    "b": 43
  },
  "hsl": {
    "h": 63.636,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.72452,
    "c": 0.14781,
    "h": 113.1
  },
  "luminance": 0.3905
}

Semantic roles & 50–950 ramp

primary
#A7AF2B
secondary
#7670C5
accent
#44E44E
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7AF2B

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

Preview Lab → · Contrast checker → · Palette generator →

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