#A7AF1E#A7AF1E

#A7AF1E is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.4% C 0.154 H 113.1°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#A7AF1E
RGBrgb(167, 175, 30)
HSLhsl(63, 71%, 40%)
HSVhsv(63, 83%, 69%)
CMYKcmyk(4.6%, 0%, 82.9%, 31.4%)
CIE-LABlab(68.73, -19.19, 65.62)
CIE-LCHlch(68.73, 68.37, 106.30°)
OKLaboklab(72.39% -0.0603 0.1416)
OKLCHoklch(72.39% 0.154 113.1)
XYZxyz(31.5017, 38.9699, 7.0905)
Luminance0.3897 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7AF1E #261EAF
analogous
#AF6E1E #A7AF1E #5FAF1E
triadic
#A7AF1E #1EA7AF #AF1EA7
tetradic
#A7AF1E #1EAF6E #261EAF #AF1E5F
square
#A7AF1E #1EAF6E #261EAF #AF1E5F
split-complementary
#A7AF1E #1E5FAF #6E1EAF
monochromatic
#43470C #757B15 #A7AF1E #D2DB2F #DDE463

Accessibility & contrast

On white

2.39
#A7AF1E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#A7AF1E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7AF1E
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7AF1E#FFFFFF#000000##000000
##A7AF1E1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#BDA92D
Tritanopia (blue-blind)
#B3A495
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a7af1e;
/* rgb */ color: rgb(167, 175, 30);
/* oklch */ color: oklch(72.4% 0.154 113.1);
Tailwind
colors: {
  custom: {
    50: '#c5c66a',
    500: '#a7af1e',
    950: '#000000',
  },
}
SCSS
$custom: #a7af1e;
$custom-light: #c5c66a;
$custom-dark: #000000;
JSON
{
  "hex": "#a7af1e",
  "rgb": {
    "r": 167,
    "g": 175,
    "b": 30
  },
  "hsl": {
    "h": 63.31,
    "s": 70.732,
    "l": 40.196
  },
  "oklch": {
    "l": 0.72386,
    "c": 0.15393,
    "h": 113.1
  },
  "luminance": 0.38969
}

Semantic roles & 50–950 ramp

primary
#A7AF1E
secondary
#6560C9
accent
#3AED44
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A7AF1E

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

Preview Lab → · Contrast checker → · Palette generator →

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