#AFBF34#AFBF34

#AFBF34 is a light, vivid yellow. Relative luminance 0.466; OKLCH L 76.8% C 0.158 H 116.0°. Best body text is #000000 at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#AFBF34
RGBrgb(175, 191, 52)
HSLhsl(67, 57%, 48%)
HSVhsv(67, 73%, 75%)
CMYKcmyk(8.4%, 0%, 72.8%, 25.1%)
CIE-LABlab(73.95, -22.85, 63.95)
CIE-LCHlch(73.95, 67.91, 109.67°)
OKLaboklab(76.76% -0.0691 0.1416)
OKLCHoklch(76.76% 0.158 116)
XYZxyz(36.9308, 46.6240, 10.3020)
Luminance0.4662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF34 #4434BF
analogous
#BF8934 #AFBF34 #6ABF34
triadic
#AFBF34 #34AFBF #BF34AF
tetradic
#AFBF34 #34BF89 #4434BF #BF346A
square
#AFBF34 #34BF89 #4434BF #BF346A
split-complementary
#AFBF34 #346ABF #8934BF
monochromatic
#575F1A #838F27 #AFBF34 #C5D35D #D7E08D

Accessibility & contrast

On white

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

On black

10.32
#AFBF34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF34
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF34#FFFFFF#000000##000000
##AFBF341.002.0310.3210.32
#FFFFFF2.031.0021.0021.00
#00000010.3221.001.001.00
##00000010.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB518
Deuteranopia (green-blind)
#CBB740
Tritanopia (blue-blind)
#BAB4A4
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf34;
/* rgb */ color: rgb(175, 191, 52);
/* oklch */ color: oklch(76.8% 0.158 116.0);
Tailwind
colors: {
  custom: {
    50: '#cad275',
    500: '#afbf34',
    950: '#000000',
  },
}
SCSS
$custom: #afbf34;
$custom-light: #cad275;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf34",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 52
  },
  "hsl": {
    "h": 66.906,
    "s": 57.202,
    "l": 47.647
  },
  "oklch": {
    "l": 0.76759,
    "c": 0.15759,
    "h": 116
  },
  "luminance": 0.46623
}

Semantic roles & 50–950 ramp

primary
#AFBF34
secondary
#8C84CA
accent
#47E059
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBF34

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

Preview Lab → · Contrast checker → · Palette generator →

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