#AFBA3F#AFBA3F

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

Color values

HEX#AFBA3F
RGBrgb(175, 186, 63)
HSLhsl(65, 49%, 49%)
HSVhsv(65, 66%, 73%)
CMYKcmyk(5.9%, 0%, 66.1%, 27.1%)
CIE-LABlab(72.62, -19.77, 58.52)
CIE-LCHlch(72.62, 61.77, 108.67°)
OKLaboklab(75.72% -0.0595 0.132)
OKLCHoklch(75.72% 0.145 114.2)
XYZxyz(36.1362, 44.5913, 11.4050)
Luminance0.4459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBA3F #4A3FBA
analogous
#BA883F #AFBA3F #72BA3F
triadic
#AFBA3F #3FAFBA #BA3FAF
tetradic
#AFBA3F #3FBA88 #4A3FBA #BA3F72
square
#AFBA3F #3FBA88 #4A3FBA #BA3F72
split-complementary
#AFBA3F #3F72BA #883FBA
monochromatic
#595F20 #848C30 #AFBA3F #C4CC6A #D6DC97

Accessibility & contrast

On white

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

On black

9.92
#AFBA3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBA3F
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBA3F#FFFFFF#000000##000000
##AFBA3F1.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afba3f;
/* rgb */ color: rgb(175, 186, 63);
/* oklch */ color: oklch(75.7% 0.145 114.2);
Tailwind
colors: {
  custom: {
    50: '#cace7b',
    500: '#afba3f',
    950: '#000000',
  },
}
SCSS
$custom: #afba3f;
$custom-light: #cace7b;
$custom-dark: #000000;
JSON
{
  "hex": "#afba3f",
  "rgb": {
    "r": 175,
    "g": 186,
    "b": 63
  },
  "hsl": {
    "h": 65.366,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.75718,
    "c": 0.14477,
    "h": 114.2
  },
  "luminance": 0.44591
}

Semantic roles & 50–950 ramp

primary
#AFBA3F
secondary
#928DC8
accent
#4FD95B
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFBA3F

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

Preview Lab → · Contrast checker → · Palette generator →

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