#A8BA2F#A8BA2F

#A8BA2F is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.0% C 0.157 H 116.9°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#A8BA2F
RGBrgb(168, 186, 47)
HSLhsl(68, 60%, 46%)
HSVhsv(68, 75%, 73%)
CMYKcmyk(9.7%, 0%, 74.7%, 27.1%)
CIE-LABlab(71.99, -23.57, 63.60)
CIE-LCHlch(71.99, 67.83, 110.34°)
OKLaboklab(75.05% -0.0711 0.1403)
OKLCHoklch(75.05% 0.157 116.9)
XYZxyz(34.2213, 43.6483, 9.3110)
Luminance0.4365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8BA2F #412FBA
analogous
#BA862F #A8BA2F #62BA2F
triadic
#A8BA2F #2FA8BA #BA2FA8
tetradic
#A8BA2F #2FBA86 #412FBA #BA2F62
square
#A8BA2F #2FBA86 #412FBA #BA2F62
split-complementary
#A8BA2F #2F62BA #862FBA
monochromatic
#505816 #7C8923 #A8BA2F #C3D353 #D4E084

Accessibility & contrast

On white

2.16
#A8BA2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.73
#A8BA2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8BA2F
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8BA2F#FFFFFF#000000##000000
##A8BA2F1.002.169.739.73
#FFFFFF2.161.0021.0021.00
#0000009.7321.001.001.00
##0000009.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B00F
Deuteranopia (green-blind)
#C5B13B
Tritanopia (blue-blind)
#B3AFA0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #a8ba2f;
/* rgb */ color: rgb(168, 186, 47);
/* oklch */ color: oklch(75.0% 0.157 116.9);
Tailwind
colors: {
  custom: {
    50: '#c5ce72',
    500: '#a8ba2f',
    950: '#000000',
  },
}
SCSS
$custom: #a8ba2f;
$custom-light: #c5ce72;
$custom-dark: #000000;
JSON
{
  "hex": "#a8ba2f",
  "rgb": {
    "r": 168,
    "g": 186,
    "b": 47
  },
  "hsl": {
    "h": 67.77,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75049,
    "c": 0.15727,
    "h": 116.9
  },
  "luminance": 0.43648
}

Semantic roles & 50–950 ramp

primary
#A8BA2F
secondary
#867CC9
accent
#45E359
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A8BA2F

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

Preview Lab → · Contrast checker → · Palette generator →

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