#A5AB1F#A5AB1F

#A5AB1F is a light, vivid yellow. Relative luminance 0.372; OKLCH L 71.3% C 0.150 H 112.3°. Best body text is #000000 at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#A5AB1F
RGBrgb(165, 171, 31)
HSLhsl(63, 69%, 40%)
HSVhsv(63, 82%, 67%)
CMYKcmyk(3.5%, 0%, 81.9%, 32.9%)
CIE-LABlab(67.45, -18.01, 64.20)
CIE-LCHlch(67.45, 66.68, 105.67°)
OKLaboklab(71.32% -0.0568 0.1388)
OKLCHoklch(71.32% 0.15 112.3)
XYZxyz(30.3283, 37.2248, 6.8836)
Luminance0.3722 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5AB1F #251FAB
analogous
#AB6B1F #A5AB1F #5FAB1F
triadic
#A5AB1F #1FA5AB #AB1FA5
tetradic
#A5AB1F #1FAB6B #251FAB #AB1F5F
square
#A5AB1F #1FAB6B #251FAB #AB1F5F
split-complementary
#A5AB1F #1F5FAB #6B1FAB
monochromatic
#41430C #737716 #A5AB1F #D2D92E #DDE362

Accessibility & contrast

On white

2.49
#A5AB1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.44
#A5AB1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5AB1F
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5AB1F#FFFFFF#000000##000000
##A5AB1F1.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#B9A62D
Tritanopia (blue-blind)
#B1A092
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #a5ab1f;
/* rgb */ color: rgb(165, 171, 31);
/* oklch */ color: oklch(71.3% 0.150 112.3);
Tailwind
colors: {
  custom: {
    50: '#c4c369',
    500: '#a5ab1f',
    950: '#000000',
  },
}
SCSS
$custom: #a5ab1f;
$custom-light: #c4c369;
$custom-dark: #000000;
JSON
{
  "hex": "#a5ab1f",
  "rgb": {
    "r": 165,
    "g": 171,
    "b": 31
  },
  "hsl": {
    "h": 62.571,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.7132,
    "c": 0.15001,
    "h": 112.3
  },
  "luminance": 0.37224
}

Semantic roles & 50–950 ramp

primary
#A5AB1F
secondary
#635EC7
accent
#3CEC43
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A5AB1F

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

Preview Lab → · Contrast checker → · Palette generator →

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