#AFB640#AFB640

#AFB640 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 74.8% C 0.140 H 112.6°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#AFB640
RGBrgb(175, 182, 64)
HSLhsl(64, 48%, 48%)
HSVhsv(64, 65%, 71%)
CMYKcmyk(3.8%, 0%, 64.8%, 28.6%)
CIE-LABlab(71.51, -17.70, 56.97)
CIE-LCHlch(71.51, 59.65, 107.26°)
OKLaboklab(74.83% -0.0536 0.1289)
OKLCHoklch(74.83% 0.14 112.6)
XYZxyz(35.3335, 42.9408, 11.2766)
Luminance0.4294 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB640 #4740B6
analogous
#B68240 #AFB640 #74B640
triadic
#AFB640 #40AFB6 #B640AF
tetradic
#AFB640 #40B682 #4740B6 #B64074
square
#AFB640 #40B682 #4740B6 #B64074
split-complementary
#AFB640 #4074B6 #8240B6
monochromatic
#585B20 #838930 #AFB640 #C4CA69 #D6DA96

Accessibility & contrast

On white

2.19
#AFB640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.59
#AFB640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB640
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB640#FFFFFF#000000##000000
##AFB6401.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE30
Deuteranopia (green-blind)
#C3B148
Tritanopia (blue-blind)
#BAAB9E
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb640;
/* rgb */ color: rgb(175, 182, 64);
/* oklch */ color: oklch(74.8% 0.140 112.6);
Tailwind
colors: {
  custom: {
    50: '#cacb7b',
    500: '#afb640',
    950: '#000000',
  },
}
SCSS
$custom: #afb640;
$custom-light: #cacb7b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb640",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 64
  },
  "hsl": {
    "h": 63.559,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.74834,
    "c": 0.13957,
    "h": 112.6
  },
  "luminance": 0.4294
}

Semantic roles & 50–950 ramp

primary
#AFB640
secondary
#8F8CC6
accent
#50D858
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB640

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

Preview Lab → · Contrast checker → · Palette generator →

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