#AFBA3A#AFBA3A

#AFBA3A is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.7% C 0.148 H 114.2°. Best body text is #000000 at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#AFBA3A
RGBrgb(175, 186, 58)
HSLhsl(65, 52%, 48%)
HSVhsv(65, 69%, 73%)
CMYKcmyk(5.9%, 0%, 68.8%, 27.1%)
CIE-LABlab(72.59, -20.07, 60.44)
CIE-LCHlch(72.59, 63.68, 108.37°)
OKLaboklab(75.68% -0.0608 0.1352)
OKLCHoklch(75.68% 0.148 114.2)
XYZxyz(36.0028, 44.5379, 10.7023)
Luminance0.4454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA3A #453ABA
analogous
#BA853A #AFBA3A #6FBA3A
triadic
#AFBA3A #3AAFBA #BA3AAF
tetradic
#AFBA3A #3ABA85 #453ABA #BA3A6F
square
#AFBA3A #3ABA85 #453ABA #BA3A6F
split-complementary
#AFBA3A #3A6FBA #853ABA
monochromatic
#575D1D #838B2B #AFBA3A #C5CE63 #D6DD92

Accessibility & contrast

On white

2.12
#AFBA3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.91
#AFBA3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA3A
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA3A#FFFFFF#000000##000000
##AFBA3A1.002.129.919.91
#FFFFFF2.121.0021.0021.00
#0000009.9121.001.001.00
##0000009.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B126
Deuteranopia (green-blind)
#C7B344
Tritanopia (blue-blind)
#BAAFA1
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afba3a;
/* rgb */ color: rgb(175, 186, 58);
/* oklch */ color: oklch(75.7% 0.148 114.2);
Tailwind
colors: {
  custom: {
    50: '#cace78',
    500: '#afba3a',
    950: '#000000',
  },
}
SCSS
$custom: #afba3a;
$custom-light: #cace78;
$custom-dark: #000000;
JSON
{
  "hex": "#afba3a",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 58
  },
  "hsl": {
    "h": 65.156,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.75678,
    "c": 0.14827,
    "h": 114.2
  },
  "luminance": 0.44537
}

Semantic roles & 50–950 ramp

primary
#AFBA3A
secondary
#8D88C8
accent
#4CDC58
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFBA3A

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

Preview Lab → · Contrast checker → · Palette generator →

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