#AFC631#AFC631

#AFC631 is a light, vivid yellow. Relative luminance 0.497; OKLCH L 78.3% C 0.167 H 118.3°. Best body text is #000000 at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#AFC631
RGBrgb(175, 198, 49)
HSLhsl(69, 60%, 48%)
HSVhsv(69, 75%, 78%)
CMYKcmyk(11.6%, 0%, 75.3%, 22.4%)
CIE-LABlab(75.90, -26.40, 66.80)
CIE-LCHlch(75.90, 71.82, 111.56°)
OKLaboklab(78.32% -0.0791 0.1471)
OKLCHoklch(78.32% 0.167 118.3)
XYZxyz(38.4285, 49.7242, 10.4784)
Luminance0.4972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC631 #4831C6
analogous
#C69231 #AFC631 #64C631
triadic
#AFC631 #31AFC6 #C631AF
tetradic
#AFC631 #31C692 #4831C6 #C63164
square
#AFC631 #31C692 #4831C6 #C63164
split-complementary
#AFC631 #3164C6 #9231C6
monochromatic
#586419 #849525 #AFC631 #C4D75D #D6E38E

Accessibility & contrast

On white

1.92
#AFC631 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.94
#AFC631 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC631
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC631#FFFFFF#000000##000000
##AFC6311.001.9210.9410.94
#FFFFFF1.921.0021.0021.00
#00000010.9421.001.001.00
##00000010.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB0B
Deuteranopia (green-blind)
#D1BC3F
Tritanopia (blue-blind)
#BABBAA
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #afc631;
/* rgb */ color: rgb(175, 198, 49);
/* oklch */ color: oklch(78.3% 0.167 118.3);
Tailwind
colors: {
  custom: {
    50: '#cbd775',
    500: '#afc631',
    950: '#000000',
  },
}
SCSS
$custom: #afc631;
$custom-light: #cbd775;
$custom-dark: #000000;
JSON
{
  "hex": "#afc631",
  "rgb": {
    "r": 175,
    "g": 198,
    "b": 49
  },
  "hsl": {
    "h": 69.262,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.78322,
    "c": 0.16707,
    "h": 118.3
  },
  "luminance": 0.49724
}

Semantic roles & 50–950 ramp

primary
#AFC631
secondary
#9085CE
accent
#44E35D
background
#FCFDF7
surface
#F9FAED
border
#D2D3C8
text
#141409
muted
#82837B

Preview Lab

Preview with #AFC631

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

Preview Lab → · Contrast checker → · Palette generator →

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