#AFBF38#AFBF38

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

Color values

HEX#AFBF38
RGBrgb(175, 191, 56)
HSLhsl(67, 55%, 48%)
HSVhsv(67, 71%, 75%)
CMYKcmyk(8.4%, 0%, 70.7%, 25.1%)
CIE-LABlab(73.97, -22.65, 62.55)
CIE-LCHlch(73.97, 66.53, 109.90°)
OKLaboklab(76.79% -0.0682 0.1394)
OKLCHoklch(76.79% 0.155 116.1)
XYZxyz(37.0247, 46.6616, 10.7968)
Luminance0.4666 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF38 #4838BF
analogous
#BF8B38 #AFBF38 #6BBF38
triadic
#AFBF38 #38AFBF #BF38AF
tetradic
#AFBF38 #38BF8B #4838BF #BF386B
square
#AFBF38 #38BF8B #4838BF #BF386B
split-complementary
#AFBF38 #386BBF #8B38BF
monochromatic
#58601C #84902A #AFBF38 #C4D163 #D6DF92

Accessibility & contrast

On white

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

On black

10.33
#AFBF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF38
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF38#FFFFFF#000000##000000
##AFBF381.002.0310.3310.33
#FFFFFF2.031.0021.0021.00
#00000010.3321.001.001.00
##00000010.3321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afbf38;
/* rgb */ color: rgb(175, 191, 56);
/* oklch */ color: oklch(76.8% 0.155 116.1);
Tailwind
colors: {
  custom: {
    50: '#cad277',
    500: '#afbf38',
    950: '#000000',
  },
}
SCSS
$custom: #afbf38;
$custom-light: #cad277;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf38",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 56
  },
  "hsl": {
    "h": 67.111,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.76786,
    "c": 0.15514,
    "h": 116.1
  },
  "luminance": 0.46661
}

Semantic roles & 50–950 ramp

primary
#AFBF38
secondary
#9089CA
accent
#4ADE5B
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B

Preview Lab

Preview with #AFBF38

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

Preview Lab → · Contrast checker → · Palette generator →

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