#AFBF3F#AFBF3F

#AFBF3F is a light, vivid yellow. Relative luminance 0.467; OKLCH L 76.8% C 0.150 H 116.2°. Best body text is #000000 at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#AFBF3F
RGBrgb(175, 191, 63)
HSLhsl(68, 50%, 50%)
HSVhsv(68, 67%, 75%)
CMYKcmyk(8.4%, 0%, 67%, 25.1%)
CIE-LABlab(74.02, -22.25, 59.95)
CIE-LCHlch(74.02, 63.95, 110.36°)
OKLaboklab(76.84% -0.0664 0.135)
OKLCHoklch(76.84% 0.15 116.2)
XYZxyz(37.2081, 46.7350, 11.7623)
Luminance0.4673 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF3F #4F3FBF
analogous
#BF8F3F #AFBF3F #6FBF3F
triadic
#AFBF3F #3FAFBF #BF3FAF
tetradic
#AFBF3F #3FBF8F #4F3FBF #BF3F6F
square
#AFBF3F #3FBF8F #4F3FBF #BF3F6F
split-complementary
#AFBF3F #3F6FBF #8F3FBF
monochromatic
#5B6321 #859130 #AFBF3F #C2CF6D #D5DE9B

Accessibility & contrast

On white

2.03
#AFBF3F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.35
#AFBF3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF3F
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF3F#FFFFFF#000000##000000
##AFBF3F1.002.0310.3510.35
#FFFFFF2.031.0021.0021.00
#00000010.3521.001.001.00
##00000010.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB52C
Deuteranopia (green-blind)
#CBB748
Tritanopia (blue-blind)
#BAB4A5
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf3f;
/* rgb */ color: rgb(175, 191, 63);
/* oklch */ color: oklch(76.8% 0.150 116.2);
Tailwind
colors: {
  custom: {
    50: '#cad27b',
    500: '#afbf3f',
    950: '#000000',
  },
}
SCSS
$custom: #afbf3f;
$custom-light: #cad27b;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf3f",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 63
  },
  "hsl": {
    "h": 67.5,
    "s": 50.394,
    "l": 49.804
  },
  "oklch": {
    "l": 0.76839,
    "c": 0.15046,
    "h": 116.2
  },
  "luminance": 0.46734
}

Semantic roles & 50–950 ramp

primary
#AFBF3F
secondary
#9790CA
accent
#4EDA5F
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFBF3F

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

Preview Lab → · Contrast checker → · Palette generator →

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