#A4B31F#A4B31F

#A4B31F is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.1% C 0.159 H 115.8°. Best body text is #000000 at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#A4B31F
RGBrgb(164, 179, 31)
HSLhsl(66, 70%, 41%)
HSVhsv(66, 83%, 70%)
CMYKcmyk(8.4%, 0%, 82.7%, 29.8%)
CIE-LABlab(69.63, -22.45, 66.05)
CIE-LCHlch(69.63, 69.76, 108.77°)
OKLaboklab(73.06% -0.069 0.1429)
OKLCHoklch(73.06% 0.159 115.8)
XYZxyz(31.6782, 40.2322, 7.3929)
Luminance0.4023 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A4B31F #2E1FB3
analogous
#B3781F #A4B31F #5AB31F
triadic
#A4B31F #1FA4B3 #B31FA4
tetradic
#A4B31F #1FB378 #2E1FB3 #B31F5A
square
#A4B31F #1FB378 #2E1FB3 #B31F5A
split-complementary
#A4B31F #1F5AB3 #781FB3
monochromatic
#444B0D #747F16 #A4B31F #CBDC33 #D8E568

Accessibility & contrast

On white

2.32
#A4B31F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.05
#A4B31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A4B31F
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A4B31F#FFFFFF#000000##000000
##A4B31F1.002.329.059.05
#FFFFFF2.321.0021.0021.00
#0000009.0521.001.001.00
##0000009.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BFAB2F
Tritanopia (blue-blind)
#AFA899
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a4b31f;
/* rgb */ color: rgb(164, 179, 31);
/* oklch */ color: oklch(73.1% 0.159 115.8);
Tailwind
colors: {
  custom: {
    50: '#c3c96b',
    500: '#a4b31f',
    950: '#000000',
  },
}
SCSS
$custom: #a4b31f;
$custom-light: #c3c96b;
$custom-dark: #000000;
JSON
{
  "hex": "#a4b31f",
  "rgb": {
    "r": 164,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 66.081,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.73056,
    "c": 0.15867,
    "h": 115.8
  },
  "luminance": 0.40232
}

Semantic roles & 50–950 ramp

primary
#A4B31F
secondary
#6E64CA
accent
#3BED4D
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A4B31F

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

Preview Lab → · Contrast checker → · Palette generator →

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