#A7AD1F#A7AD1F

#A7AD1F is a light, vivid yellow. Relative luminance 0.382; OKLCH L 71.9% C 0.151 H 112.2°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#A7AD1F
RGBrgb(167, 173, 31)
HSLhsl(63, 70%, 40%)
HSVhsv(63, 82%, 68%)
CMYKcmyk(3.5%, 0%, 82.1%, 32.2%)
CIE-LABlab(68.17, -18.15, 64.88)
CIE-LCHlch(68.17, 67.38, 105.63°)
OKLaboklab(71.94% -0.0573 0.1402)
OKLCHoklch(71.94% 0.151 112.2)
XYZxyz(31.1283, 38.2023, 7.0301)
Luminance0.3820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7AD1F #251FAD
analogous
#AD6C1F #A7AD1F #60AD1F
triadic
#A7AD1F #1FA7AD #AD1FA7
tetradic
#A7AD1F #1FAD6C #251FAD #AD1F60
square
#A7AD1F #1FAD6C #251FAD #AD1F60
split-complementary
#A7AD1F #1F60AD #6C1FAD
monochromatic
#43450C #757916 #A7AD1F #D3DA2F #DEE363

Accessibility & contrast

On white

2.43
#A7AD1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#A7AD1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7AD1F
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7AD1F#FFFFFF#000000##000000
##A7AD1F1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA500
Deuteranopia (green-blind)
#BBA82D
Tritanopia (blue-blind)
#B3A294
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #a7ad1f;
/* rgb */ color: rgb(167, 173, 31);
/* oklch */ color: oklch(71.9% 0.151 112.2);
Tailwind
colors: {
  custom: {
    50: '#c5c56a',
    500: '#a7ad1f',
    950: '#000000',
  },
}
SCSS
$custom: #a7ad1f;
$custom-light: #c5c56a;
$custom-dark: #000000;
JSON
{
  "hex": "#a7ad1f",
  "rgb": {
    "r": 167,
    "g": 173,
    "b": 31
  },
  "hsl": {
    "h": 62.535,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.71939,
    "c": 0.15149,
    "h": 112.2
  },
  "luminance": 0.38202
}

Semantic roles & 50–950 ramp

primary
#A7AD1F
secondary
#6460C8
accent
#3BEC43
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A7AD1F

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

Preview Lab → · Contrast checker → · Palette generator →

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