#A7AF34#A7AF34

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

Color values

HEX#A7AF34
RGBrgb(167, 175, 52)
HSLhsl(64, 54%, 45%)
HSVhsv(64, 70%, 69%)
CMYKcmyk(4.6%, 0%, 70.3%, 31.4%)
CIE-LABlab(68.84, -18.27, 58.77)
CIE-LCHlch(68.84, 61.54, 107.27°)
OKLaboklab(72.51% -0.0559 0.131)
OKLCHoklch(72.51% 0.142 113.1)
XYZxyz(31.8871, 39.1240, 9.1201)
Luminance0.3912 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7AF34 #3C34AF
analogous
#AF7934 #A7AF34 #6AAF34
triadic
#A7AF34 #34A7AF #AF34A7
tetradic
#A7AF34 #34AF79 #3C34AF #AF346A
square
#A7AF34 #34AF79 #3C34AF #AF346A
split-complementary
#A7AF34 #346AAF #7934AF
monochromatic
#4D5118 #7A8026 #A7AF34 #C4CC54 #D5DA83

Accessibility & contrast

On white

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

On black

8.82
#A7AF34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7AF34
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7AF34#FFFFFF#000000##000000
##A7AF341.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA71F
Deuteranopia (green-blind)
#BCA93D
Tritanopia (blue-blind)
#B2A597
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a7af34;
/* rgb */ color: rgb(167, 175, 52);
/* oklch */ color: oklch(72.5% 0.142 113.1);
Tailwind
colors: {
  custom: {
    50: '#c4c673',
    500: '#a7af34',
    950: '#000000',
  },
}
SCSS
$custom: #a7af34;
$custom-light: #c4c673;
$custom-dark: #000000;
JSON
{
  "hex": "#a7af34",
  "rgb": {
    "r": 167,
    "g": 175,
    "b": 52
  },
  "hsl": {
    "h": 63.902,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72511,
    "c": 0.1424,
    "h": 113.1
  },
  "luminance": 0.39123
}

Semantic roles & 50–950 ramp

primary
#A7AF34
secondary
#807BC4
accent
#4ADE54
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A7AF34

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

Preview Lab → · Contrast checker → · Palette generator →

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